[UICachedDeviceRGBColor stringByReplacingOccurrencesOfString:withString:]:

时间:2016-08-10 09:48:45

标签: ios objective-c uicolor

当我尝试使用UIColor时,我发现了这个错误:[UICachedDeviceRGBColor stringByReplacingOccurrencesOfString:withString:]:无法识别的选择器

  

由于未捕获的异常终止应用程序' NSInvalidArgumentException',原因:' - [UICachedDeviceRGBColor stringByReplacingOccurrencesOfString:withString:]:无法识别的选择器发送到实例0x7f957952d870'       ***第一次抛出调用堆栈:       (       0 CoreFoundation 0x0000000103363d85 exceptionPreprocess + 165       1 libobjc.A.dylib 0x0000000102ac7deb objc_exception_throw + 48       2 CoreFoundation 0x000000010336cd3d - [NSObject(NSObject)doesNotRecognizeSelector:] + 205       3 CoreFoundation 0x00000001032b2cfa ___ forwarding _ + 970

1 个答案:

答案 0 :(得分:0)

崩溃日志说您尝试向UICachedDeviceRGBColor课程发送邮件,但它没有名称为stringByReplacingOccurrencesOfString:withString:的方法,并且它不会从NSString继承。此方法仅在NSString类中声明。