Reputation: 591
I am trying to read a plist file using this -
NSData *data = [NSData dataWithContentsOfFile:SettingsFilePath];
NSPropertyListFormat format;
NSArray *array = [NSPropertyListSerialization propertyListFromData:data mutabilityOption:NSPropertyListImmutable format:&format errorDescription:nil];
but its not working.. is there any other way of doing this?
Upvotes: 0
Views: 709
Reputation: 22893
try with this way -
NSArray *arr= [[NSArray alloc] initWithContentsOfFile:plistPath];
Upvotes: 2