You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How does the UIButton background map support the GIF ? I use this method [myButton sd_setImageWithURL:[NSURL URLWithString:@"http://xx/xx.gif" ]forState:UIControlStateNormal placeholderImage:placeImage],but it's show only the first frame。
The text was updated successfully, but these errors were encountered:
lewis15
changed the title
How does the UIButton background map support the GIF?
How does the UIButton background support the GIF?
Jan 26, 2018
UIButton only support UIImage's built-in animated images. By default, we do not add GIF coder(FLAnimatedImage is one library which does not use UIImage's built-in animated images) . You should add this manually and start using.
// in AppDelegate or somewhere, once is enough
[[SDWebImageCodersManager sharedManager] addCoder:[SDWebImageGIFCoder sharedCoder]];
How does the UIButton background map support the GIF ? I use this method [myButton sd_setImageWithURL:[NSURL URLWithString:@"http://xx/xx.gif" ]forState:UIControlStateNormal placeholderImage:placeImage],but it's show only the first frame。
The text was updated successfully, but these errors were encountered: