How to Reset a Forgotten Passcode
Sometimes, you may forget your passcode, and be locked out of your device. Follow these instructions to reset your passcode.
Warning: If you don't have a backup, then all the data and apps on the device are lost.
Step 1: Hold down the sleep and home button until the screen goes black (NOT until the red "slide to power off" screen appears).
Step 2: Connect the device to your computer. Immediately hold down the home button when the device turns on until the recovery mode screen appears.
Note: Make sure you put your device in recovery mode and not in DFU mode.
Step 3: Open iTunes if it is not already on. When iTunes recognizes your device, a dialog appears saying that the device is in recovery mode. Press OK or hit Enter on the keyboard.
Step 4: Click Restore, then confirm that you want to restore your device to its factory settings. The latest version of the software will be downloaded from Apple and installed.
Note: To restore your device, you need to be connected to the Internet.
Step 5: Wait for the device to be restored. After the restoring completes, you can choose to restore your contacts, text messages, music, etc.
Step 6: There is no step 6. You are done.