I just got an I-phone 5 a few months back and decided to sale my I-phone 4 and the same thing happened to me. I just did exactly what
StephRi0s said to do. Which was logged into the cloud, and connected my old device to my wi-fi, turned on "find my i-phone, oh and don't forget to turn on your "location services". Just to be cautious and avoid any issues with my current phone I temporarily turned off my i-phone 5. and was able to find and completely erase my i-phone 4 from the cloud. Worked perfectly! : ) As the sitting around waiting for 60 minutes to try a different password and rule out possible pass-codes was getting very frustrating. Wish I had found this thread earlier!! Thx
Here is the post I referenced.
Sep 18, 2013 10:04 PM
Re: iOS 7 forgot restrictions passcode in response to Richs79
I did this also.
think i found a solution but you must know your apple ID and PW.
1. sign into icloud.com
2. once you are signed in click on "find my iphone" tab
3. click "all devices" on top of the page
4. click on the device you lost your passcode to.
5. once you do a couple of choices will come up "play sound" "lost mode" and "erase iphone"
click on the erase iphone. and it will begin to whip out your iphone.
6. once i was done i connected it back into my itunes and restored from my last backup. i was then
able to get into my phone and reset my passcode. :-)
hope this helps. i was so lost i thought i messed up big time lol.