To set a passcode lock on your iPhone 5, follow these simple steps:
- From the iPhone 5 home screen, tap Settings.
- Scroll down and select General.
- Next, select select Turn Passcode On.
- Enter a four-digit passcode, or an alphanumeric passcode of any length.
- Re-type your passcode to confirm.
- Set Require Passcode to the desired time ==}} this will be the amount of idle time before your iPhone 5 will require you to enter the passcode.