1

我已经为导航栏设置了色调,例如

self.navigationController.navigationBar.tintColor = 
    [UIColor colorWithRed:168.0/255.0 green:0.0/255.0 blue:0.0/255.0 alpha:1.0];

这适用于 iOS 5 及更高版本。但在 iOS 4 及以下 iOS 5 中,它只是黑色。色调颜色未设置。

4

1 回答 1

0

for UISWitch tintColor is only for IOS 6.0 and later. so probably on IOS 5.0 should crash

于 2012-12-05T13:58:33.890 回答