码迷,mamicode.com
首页 > 移动开发 > 详细

ios 在使用 SDWebimage UIButton setBackgroundimage

时间:2017-09-02 20:01:42      阅读:221      评论:0      收藏:0      [点我收藏+]

标签:head   ons   ucs   ade   clear   class   cti   解决   block   

 

 

解决方法 :

有法为此在 SDWebImage: SDWebImage / SDWebImage / UIButton+WebCache.h

导入此文件在您的类:

#import <SDWebImage/UIButton+WebCache.h>

使用此方法的任何一种:

 - (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state;
 - (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder;
 - (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options;
 - (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletedBlock)completedBlock;
 - (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock;
 - (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock;
 
 
 
 

ios 在使用 SDWebimage UIButton setBackgroundimage

标签:head   ons   ucs   ade   clear   class   cti   解决   block   

原文地址:http://www.cnblogs.com/-yun/p/7467400.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!