Reputation: 63
i am integrating twitter in my iphone music application.When the user enters username and password in the login dialog box of twitter and clicks on the post button the user is redirected to updatecontroller page where he can post his comments on the twitter and when he returns backand clicks on another songs his username and password is lost.So, i need help that when user click on the save username and password button his username and password should be saved. please help me regarding this problem.
Upvotes: 0
Views: 2294
Reputation: 125
I'm trying to do the exact same thing, I've found an interesting tutorial on getting it done with keychain access but not sure if I want to dive into it, seems complicated :)
http://useyourloaf.com/blog/2010/3/29/simple-iphone-keychain-access.html
Upvotes: 1
Reputation: 2515
When you want to save username and password call writeToFile defined in NSSString, on a need basis you can even encrypt username and password before writing to file.
Updated: you can go for "Protected Files" in iPhone. You can do this using NSData and NSFileManager.
Upvotes: 0
Reputation: 7255
You can use Keychain to store secure data. See Keychain Programming Guide for details on how to use it.
Upvotes: 4