Home > DeveloperSection > Interviews > What is the use of Plists in iOS?

Posted on    October-22-2015 11:52 PM

 iPhone iPhone  Ios  Objective C 
Ratings:
 1 Answer(s)
  384  View(s)
Rate this:

Tarun Kumar

Total Post:107

Points:535
Posted on    October-22-2015 11:52 PM

Property lists organize data into named values and lists of values using several object types. These types give you the means to produce data that is meaningfully structured, transportable, storable, and accessible, but still as efficient as possible. Property lists are frequently used by applications running on both Mac OS X and iOS. The property-list programming interfaces for Cocoa and Core Foundation allow you to convert hierarchically structured combinations of these basic types of objects to and from standard XML. You can save the XML data to disk and later use it to reconstruct the original objects.
The user defaults system, which you programmatically access through the NSUserDefaults class, uses property lists to store objects representing user preferences. This limitation would seem to exclude many kinds of objects, such as NSColor and NSFont objects, from the user default system. But if objects conform to the NSCoding protocol they can be archived to NSData objects, which are property list–compatible objects.

Don't want to miss updates? Please click the below button!

Follow MindStick