How do I unlock my phone if I have forgotten my password?

how to unlock after forgot my password

just bought an iphone s4 and started well but forgot my password is there any means i can unlock it?
how to unlock after forgot my password

Welcome to iMore! You are going to have to restore your iPhone back to factory settings. There are a few ways to do this depending on whether or not you've set up Find My iPhone. Refer to this support article for details:
https://support.apple.com/en-us/HT204306
If you have access to a computer I recommend booting into recovery mode and restoring with iTunes.
Re: how to unlock after forgot my password

To do the above, you will still need your Apple ID and password to set up. Also, you will lose all your data, including photos .

Original thread: https://forums.imore.com/threads/how-do-i-unlock-my-phone-if-i-have-forgotten-my-password.355980/