[__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";会出现此错误。

你可能感兴趣的:([__NSCFConstantString size])