Problem with reading data from plist iphone sdk
Posted
by neha
on Stack Overflow
See other posts from Stack Overflow
or by neha
Published on 2010-05-12T07:17:19Z
Indexed on
2010/05/12
7:24 UTC
Read the original article
Hit count: 272
Hi all, I'm creating a myDb.plist file in my resources folder and trying to read it, but it's not getting read. I'm using the following code.
NSString* plistPath = [[NSBundle mainBundle] pathForResource:@"myDb" ofType:@"plist"];
contentArray = [NSArray arrayWithContentsOfFile:plistPath];
contentArray is showing null.
Can anybody please help me?
Thanx in advance.
© Stack Overflow or respective owner