21
我已經在故事板中設置了默認色調顏色,但是我的UISwitch組件的默認顏色爲舊藍色。iOS 7.1默認色彩顏色不會更改爲UISwitch
所以我試圖把
[[UIView appearance] setTintColor:APPCOLOR];
內我的應用程序委託方法
- (void)applicationWillResignActive:(UIApplication *)application
但仍沒有運氣,我也試過放在那裏
[[UISwitch appearance] setTintColor:APPCOLOR];
和再也沒有變化。
APPCOLOR
在我的constants.h文件中定義,我當然包括它。
如何在全局設置我的UISwitch的色調顏色?
其他元素的着色顏色,例如UIButton正確更改。
很好的回答!謝謝。 – mrvincenzo