How to reset a forgotten iPad or iPhone passcode: Never synced with iTunes
If you see one of following alerts, you need to erase your device.
"iTunes could not connect to the [device] because it is locked with a passcode. You must enter your passcode on the [device] before it can be used with iTunes." Or "You haven't chosen to have [device] trust this computer"
If you have enable Find My iPhone (or iPad), use the Remote Wipe feature to erase the contents of your device. Then where possible, use iCloud to restore the most recent backup and reset the passcode.
Note: To use Find My iPhone, you'll need to have set up a restrictions passcode.
If this doesn't work or you don't have access to Find My iPhone or iCloud then follow these steps.
Place your device in recovery mode. Find out how to do this in our How to get an iPhone, iPad or iPod touch in and out of recovery mode guide.
Step Two:Click 'ok' on the message from iTunes stating the device is in recovery mode.
Step Three:Now restore your device from iTunes.