zoukankan      html  css  js  c++  java
  • ios 在使用 SDWebimage UIButton setBackgroundimage

     

     

    解决方法 :

    有法为此在 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;
     
     
     
     
  • 相关阅读:
    day04用户交互和运算符
    day04垃圾回收机制
    day4
    B2. K for the Price of One (Hard Version)
    C. New Year and Permutation
    Rational Ratio
    C. Two Arrays
    D. MEX maximizing
    B. Infinite Prefixes
    C. Obtain The String
  • 原文地址:https://www.cnblogs.com/-yun/p/7467400.html
Copyright © 2011-2022 走看看