It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center




7年前关闭。




我目前在控制台中收到此崩溃日志:

2011-08-23 19:18:40.064 App [1697:707]-[__ NSCFData
_fastCharacterContents]:无法识别的选择器已发送至实例0x1dbed0 2011-08-23 19:18:40.075 App [1697:707] *由于未捕获的异常'NSInvalidArgumentException'而终止了应用程序,原因:'-[__ NSCFData _fastCharacterContents]:无法识别的选择器已发送至
实例0x11f1c0'

有人知道这意味着什么吗?可能是什么原因造成的?谢谢!

最佳答案

NSData 对象不响应_fastCharacterContents选择器,因此会抛出运行时异常。
NSString,但是,确实具有使用该名称的 private 方法,因此您很可能将NSData对象存储在假定为NSString的内容中。

10-08 13:34