标签:
- (id) initWithTitle:(NSString *)title image:(UIImage *)image selectedImage:(UIImage *)selectedImage
使用该方法设置会图片选中时会变成蓝色的。
如果不希望成为蓝色需改变图片的属性为UIImageRenderingModeAlwaysOriginal
具体代码如下
[self setImage:[image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
[self setSelectedImage:[selectedImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
标签:
原文地址:http://www.cnblogs.com/mlgbya/p/4301444.html