How to unlock my iphone 4 forgot password?

I forgot the password of my iphone & i want to unlock it with out erasing the pictures is there anyway way you can unlock it i dont want to restore it

I think you connect your phone to a computer using the data cable and iTunes and that will allow you to reset the password. I don't own an iPhone, so I am just going based off what I have read.

Go to

Well, restore the only way. If it is jailbroken, you can easily take all data beforehand. If it has previous backup, you should not worry about restoring.

You need restore with itunes.