在iOS5上取消归档iOS4数据不起作用

时间:2011-10-16 15:10:36

标签: ios ios5 nscoding

我使用NSDictionary在iOS 4上归档NSKeyedArchiver,但在iOS 5上使用

取消归档
[NSKeyedUnarchiver unarchiveObjectWithData: data]

抛出此异常

*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '*** -[NSKeyedUnarchiver initForReadingWithData:]:
incomprehensible archive (0x62, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x30, 0x30)'

请注意,在iOS 4上取消归档可以正常工作。 plutil -lint报告存档没问题。这是参考:

http://www.complang.tuwien.ac.at/schani/monkeyfull.ltg

0 个答案:

没有答案