当我们将backgroundColor或font设置为UILabel时,应用程序崩溃的原因如下 以下是崩溃日志
*** Assertion failure in void PushNextClassForSettingIMP(id, SEL)(), /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3505.16/UIAppearance.m:757
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Please file a radar on UIKit if you see this assertion.'
这开始在iOS 9.3.1中发生
以下行崩溃。
[self setBackgroundColor:[UIColor whiteColor]];