草庐IT

iWantPlan

全部标签

IOS 7 按钮图像颜色

我的UIButton的一部分是一个UIImage,并且IOS7将其颜色从黑色更改为蓝色。我尝试了这里提供的解决方案:将按钮类型更改为UIButtonTypeSystem但这没有帮助,图像仍然是蓝色的。这是我正在使用的通用代码:UIButton*iWantPlan=[UIButtonbuttonWithType:UIButtonTypeSystem];iWantPlan.frame=CGRectMake(self.view.bounds.size.width/2-bgImageWidth/2,planBg.frame.origin.y+planBg.frame.size.height+2