I am trying to read a plist file using this -
N开发者_C百科SData *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?
try with this way -
NSArray *arr= [[NSArray alloc] initWithContentsOfFile:plistPath];
Try + (id)arrayWithContentsOfFile:(NSString *)aPath
to load it.
精彩评论