Find "Change Passcode"
Press Settings.
Press General.
Press Passcode Lock.
Press Change Passcode.
Change phone lock code
Key in your current phone lock code.
Key in a new phone lock code.
Key in the new phone lock code again.
Key in a new phone lock code.
Key in the new phone lock code again.

Exit
Press the Home key to return to standby mode.