iOS UIColor相关
hengshujiyi
这个作者很懒,什么都没留下…
展开
-
UIImage和UIColor之间的转变
UIButton *cancelButton = (UIButton*)searchbuttons; UIImage *image = [UIImageimageNamed:@"searchBar_bg.png"]; [cancelButton setTintColor:[UIColorcolorWithPatternImage:image]];原创 2014-02-28 16:12:40 · 1238 阅读 · 0 评论 -
UIColor和UIImage转换
UIColor 转UIImage- (UIImage*) createImageWithColor: (UIColor*) color{ CGRectrect=CGRectMake(0.0f, 0.0f, 1.0f, 1.0f); UIGraphicsBeginImageContext(rect.size); CGContextRefcon原创 2014-04-03 10:57:42 · 20616 阅读 · 0 评论