【发布时间】:2015-05-23 14:18:35
【问题描述】:
我正在使用第三方库并像这样调用其中一个函数。
NSError* error = nil;
self.updatedDocument.bookmarkParser.bookmarks = newBookmarks;
//save the document
[self.updatedDocument.bookmarkParser saveBookmarksWithError:&error];
[self.updatedDocument saveAnnotationsWithError:&error];
第三方apis.h文件长这样。
/// Saves the bookmark into a plist file at bookmarkPath.
/// @note Saving is done async.
- (BOOL)saveBookmarksWithError:(NSError *__autoreleasing*)error;
我不确定我是否正确使用了这个 NSError 指针,因为我不确定 *__autoreleasing 的作用。感谢您的帮助。
【问题讨论】:
标签: ios objective-c iphone xcode nserror