Here are the steps in enabling a passcode lock on Apple iPhone, iPod, and iPad devices. Having a passcode lock is the first step in protecting your data if your devices is physically stolen.
1. First navigate to you settings menu.
2. Under the general tab click passcode lock
3. Now click turn passcode on
4. You are now directed to pick a 4 digit code