Your problem are our challenges

iphone

iOS How to Load a plist

July 31, 2011 — Anonymous
Filed under:

Property Lists – plists – are a standard way of storing data in iPhone and MacOS programs. Here’s how you use them on the iPhone.

NSString* plistPath = [[NSBundle mainBundle] pathForResource:@"dwarves" ofType:@"plist"];
NSDictionary *plistDict = [[NSDictionary alloc] initWithContentsOfFile:plistPath];

// use plistDict

[plistPath release];
[plistDict release];