If you have an application that should save any values or objects or preferences (like : how to access preference from your iOS Applications ) for example state of a switch, state of background and you don’t want use database for that small request you can simply add instance of NSUserDefaults class in your implementation. Information About NSUserDefaults: With the NSUserDefaults class, you can save settings and properties related to application or user data. For example, you could save a profile image set by the user or a default color scheme for the application. The objects will be saved in what is known as the iOS “defaults system”. The iOS defaults system is available throughout all of the code in your app, and any data saved to the defaults system will persist through application sessions . This means that even if the user closes your application or reboots their phone, the saved data will still be available the next time they open the app! Main Points: ...
Technical Solutions for C, C++, Objective-C, C#, OOP's, Data Structure, Algorithms, Mobile Technology, Mobile Design, HTML/HTML5, Web, iOS/iPad/iPhone, Apple Script, Shell Script, Phonegap, AppAccelerator, Unix, Linux, Mac-OS X, Windows, SQL-Server, PL-SQL, Sqlite3, Database Design issues tips, tricks and hacks by Vinay Mishra.