NSCFData fastCharacterContents崩溃? [英] NSCFData fastCharacterContents crash?
问题描述
我目前正在控制台中收到此崩溃日志:
I am currently getting this crash log in the console:
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'
2011-08-23 19:18:40.064 App[1697:707] -[__NSCFData _fastCharacterContents]: unrecognized selector sent to instance 0x1dbed0 2011-08-23 19:18:40.075 App[1697:707] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFData _fastCharacterContents]: unrecognized selector sent to instance 0x11f1c0'
有谁知道这是什么手段?可能是什么原因造成的?谢谢!
Does anyone know what this means? What could be the cause of it? Thanks!
推荐答案
NSData
对象不响应 _fastCharacterContents
选择器,因此抛出运行时异常。
An NSData
object doesn't respond to a _fastCharacterContents
selector, so there's a runtime exception being thrown.
NSString
但是, DOES 有一个带有该名称的私有方法,因此您可能会将 NSData
对象存储到假定为一个 NSString
。
NSString
, however, DOES have a private method with that name, so it's likely that you're storing an NSData
object into something that is assumed to be an NSString
.
这篇关于NSCFData fastCharacterContents崩溃?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!