1. Click on the Settings icon
2. Click General in the middle of the screen.
3. Click Passcode Lock in the middle of the menu.
4. You will be prompted to Set the passcode
5. You will then be asked to re-enter the passcode
Now your passcode is set and from this menu you can change the passcode settings: