Restore to a backup (if it was taken when the code wasn't on the device), or reset the device back to factory defaults (for both, first copy off anything that you want to keep) - to reset it back to factory defaults you may need to use recovery mode, there are instructions for doing that half-way down this page : If you forgot the passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support
Want to highlight a helpful answer? Upvote!
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >