//if (document == nil) // Unarchive failed so create a new ReaderDocument object
//{
document = [[ReaderDocument alloc] initWithFilePath:filePath password:phrase];
//}
将对应行注释掉即可。
本文介绍了一种解决在使用ReaderDocument对象初始化时遇到的问题的方法,通过注释掉特定的代码行,可以避免因文档归档失败而导致的错误,确保应用程序正常运行。
//if (document == nil) // Unarchive failed so create a new ReaderDocument object
//{
document = [[ReaderDocument alloc] initWithFilePath:filePath password:phrase];
//}
将对应行注释掉即可。
转载于:https://www.cnblogs.com/xqnq2007/p/6666678.html

被折叠的 条评论
为什么被折叠?