Discussion This method recursively validates that all the contained objects are property list objects (instances of NSData, NSDate, NSNumber, NSString, NSArray, or NSDictionary) before writing out the file, and returns NO if all the objects are not property list objects, since the resultant file would not be a valid property list.
首先
writeToFile失败不是大小的问题,肯定是字典里有不合法的对象了,那么哪些是不合法呢?
文档里有有这么一句话
Discussion
This method recursively validates that all the contained objects are property list objects (instances of NSData, NSDate, NSNumber, NSString, NSArray, or NSDictionary) before writing out the file, and returns NO if all the objects are not property list objects, since the resultant file would not be a valid property list.
所以...
例如你可以试试
然后回到另一个问题,什么方案合适,我推荐用: EGOCache