[__NSCFConstantString size]

出现:-[__NSCFConstantString size]: unrecognized selector sent to instance 0x10bf88dc0

2015-11-26 15:44:04.112 GoodToFuture[2833:1140339] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString size]: unrecognized selector sent to instance 0x10bf88dc0'

原因:因为使用时候的类型和初始化的对象类型不匹配造成的,比如UIImage *image = @"imageName";会出现此错误。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容