默认的onTintColor是绿色的,就像我在iOS7上看到的那样,但是我希望它是另一种颜色。
[myUISwitch setOnTintColor:[UIColor customColor]];不管用。正如文档所述,on/offImages对iOS7没有任何影响。为什么不能用呢?我如何改变它的onTintColor
发布于 2013-11-25 15:23:41
UISwitch *switch = [UISwitch alloc] init];
[switch setOnTintColor:[UIColor customColor]];
[myView addSubview:switch];不管用。但
UISwitch *switch = [UISwitch alloc] init];
[myView addSubview:switch];
[switch setOnTintColor:[UIColor customColor]];很管用。色调的颜色不会改变,除非它是可见的。有人要解释吗?
https://stackoverflow.com/questions/20196416
复制相似问题