I have to make an iPhone application.
I have one button and button name is registration in xib if I click the button then registration form will be open
the registration form is created in web server
if the user fill the registration form
suppose he fill the username and password in registration it will save in server and same username and password should save in or local database also.
You have 3 main options for persisting the login data; Settings, Core Data and SqlLite. For just a username and password you only need to use the Settings as the overhead of the other two options would be excessive and they are more often used for relational data.
To use Settings you need to load them when the application controller initialises by calling;
You can then store your username and password with a method call to this;
You can populate the UITextField inputs using the following method;
I have these public methods in a separate SettingsUtils class so I can make sure my keys are the same. You could also declare the keys as NSString objects instead to reduce the chance of mis-typing them.