I need to save User Name and Password in NSUserDefault. I am planning to place a round rect button in IB. On pressing of which the User name and Password would be saved in NSUserDefault, so that when user kills the application and tries to login again after some time, they do not need to enter their login details again.
Any help would be highly appreciated.
Thanks and best regards,
PC
For Saving Username and Password I will personally suggest to use
Keychainas they are more safer thanNSUserDefaultin terms of security sinceKeychainstores data in encrypted form whileNSUserDefaultstores as plain text. If you still want to useNSUserDefaultHere’s the wayFOR SAVING
FOR RETRIEVING