在iOS7上,当色调颜色发生变化时(例如,当出现UIAlertView时),View会在它们的tintColorDidChange方法中得到通知。我有几个subview,我想为其提供自定义的禁用状态。(例如,假设我还想暂时调暗自定义UIControl的backgroundColor。)我一直在使用这段代码:-(void)tintColorDidChange{BOOLisInactive=(CGColorSpaceGetModel(CGColorGetColorSpace([self.tintColorCGColor]))==kCGColorSpaceModelMonochrome);i