摘要:
第一步,下载SDWebImage,导入工程。github托管地址https://github.com/rs/SDWebImage第二步,在需要的地方导入头文件1#import"UIImageView+WebCache.h"第三步,调用sd_setImageWithURL:方法缓存图片,注意,这就是新... 阅读全文
posted @ 2015-10-28 19:38
超越昨天
阅读(194)
评论(0)
推荐(0)
摘要:
searchBar.backgroundImage = [self imageWithColor:[UIColor clearColor] size:searchBar.bounds.size];//取消searchbar背景色- (UIImage *)imageWithColor:(UIColor... 阅读全文
posted @ 2015-10-28 16:17
超越昨天
阅读(232)
评论(0)
推荐(0)
摘要:
contentMode属性:这个属性是用来设置图片的显示方式,如居中、居右,是否缩放等,有以下几个常量可供设定:UIViewContentModeScaleToFill UIViewContentModeScaleAspectFit UIViewContentModeScaleAspectFill ... 阅读全文
posted @ 2015-10-28 11:23
超越昨天
阅读(328)
评论(0)
推荐(0)

浙公网安备 33010602011771号