How to keep everything on iphone after restoring?

Someone accidentally put a code on my phone and he doesn't know what he typed so I have to restore my phone. So I just backed up my phone on itunes, will i be able to keep text messages and photos on my phone?

Your photos, contacts and all should be okay. Honestly, I'm not sure about your texts tho!

Yes, if you have a backup, you can restore from the backup after you restore your phone.
1. Connect it with iTunes on your computer
2. Right-click (or Control-click) the device and choose Restore from Backup

  • Will restoring your iPhone take everything off? I'm gonna get a new phone so I'm giving this one to my brother and I don't want any of my stuff left on here like my iTunes username or email and etc basically I want it back like a new phone
  • Will restoring my iPhone clear everything? Will it delete absolutely everything? Like photos, music, Internet history and any passwords to social networking sites, texts, contacts, etc. If not, how do I do that?
  • Will my iphone 4s unlock go away after restoring it? So, For some reason I want to reset or restore my iphone? I have it Unlocked. Full. Any SIM runs.So, after reseting will it go away?
  • Restoring lost iphone photos after update? Right, basically my dad is a right techno noob and he has not backed up his iphone since january (or so it says). He has recently just installed the new ios6 and after this he has lost all of his photos and is only able to get a back up from that of january. Surely itunes would have backed it up before the update? It doesn't look as though the photos are on the phone at all, but i was wondering if they would have been stored anywhere? any help would be great