tags:

views:

2144

answers:

4

Hi,

I need to create an IPhone Application...Which will communicate with a website...so it requires username and password...Now I need to know how to save the username and password in iphone...I have already used NSuserdefaults...but that didnt solved my pblm....Also I need to restore the view...from where the user exits the application...So I request you to help me?

Regards and thanks for the support,

Syam

+1  A: 

You can store the password on a regular file, or you can also store it on a SQLite database.

Pablo Santa Cruz
This is what I would do, the SQLite database.
BobbyShaftoe
Thanks for your fast replay...Do u know how to restore the view from where the user exits the application...???
Sreelal
A: 

Thanks for the fast replay...Do u know how to restore the view from where the user exits the application...???

Sreelal
I don't think I am getting what you are trying to say. Can you clarify please?
Pablo Santa Cruz
Yeah I will explain...user login into his account using user name and password...then he will be able to access different pages...I need to know if the remember password is enabled..then user can directly go to the page from where he exited..means restoring the view...
Sreelal
View contains a tableview with data from the website...So I need to restore all the data..by fetching the data again from the website...
Sreelal
A: 

hi All

Is this secure to store the password in NSUserDefaults?.While syncing with iTune the iPhone/iTouch data backup is taking at particular location of MacBook. I have seen so many *.mdinfo & *.mddata files so Is there way to see the stored password from these backup iphone data

Thanks in advance for your reply.

+3  A: 

I am a bit paranoid about saving secure data (username/passwords) on plain text files such as plist files or NSUserDefaults.

Apple provides Keychain services to store secure data. It is slightly complicated, view the documentation Keychain Services Tasks for iPhone OS

They also provide Generic Keychain app to explore.

beidy