我正在下载这样的 .plist:
dispatch_async(kBgQueue, ^{
NSError* error = nil;
NSData* data = [NSData dataWithContentsOfURL:kFeedURL options:NSDataReadingUncached error:&error];
if (error) {
//NSLog(@"Feed error: %@", [error localizedDescription]);
} else {
[self performSelectorOnMainThread:@selector(fetchedData:)
withObject:data waitUntilDone:YES];
}
});
但是如何将数据转换回 plist 并将其保存到应用程序?
- (void)fetchedData:(NSData *)responseData {
//???
}