2016-06-13 14:14:02 +08:00
|
|
|
/*
|
|
|
|
* This file is part of the SDWebImage package.
|
|
|
|
* (c) Olivier Poitrey <rs@dailymotion.com>
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
2016-06-13 06:13:46 +08:00
|
|
|
|
|
|
|
#import "ViewController.h"
|
2018-04-19 16:23:17 +08:00
|
|
|
#import <SDWebImage/SDWebImage.h>
|
2016-06-13 06:13:46 +08:00
|
|
|
|
|
|
|
@interface ViewController ()
|
|
|
|
|
2017-12-21 11:43:46 +08:00
|
|
|
@property (weak, nonatomic) IBOutlet UIImageView *imageView1;
|
|
|
|
@property (weak, nonatomic) IBOutlet UIImageView *imageView2;
|
|
|
|
@property (weak, nonatomic) IBOutlet SDAnimatedImageView *imageView3;
|
|
|
|
@property (weak, nonatomic) IBOutlet SDAnimatedImageView *imageView4;
|
2016-06-13 06:13:46 +08:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@implementation ViewController
|
|
|
|
|
|
|
|
- (void)viewDidLoad {
|
|
|
|
[super viewDidLoad];
|
|
|
|
// Do any additional setup after loading the view, typically from a nib.
|
|
|
|
|
2019-05-29 15:12:14 +08:00
|
|
|
[self.imageView1 sd_setImageWithURL:[NSURL URLWithString:@"https://nokiatech.github.io/heif/content/images/ski_jump_1440x960.heic"]];
|
2016-06-13 06:13:46 +08:00
|
|
|
[self.imageView2 sd_setImageWithURL:[NSURL URLWithString:@"http://www.ioncannon.net/wp-content/uploads/2011/06/test2.webp"]];
|
2017-12-21 11:43:46 +08:00
|
|
|
[self.imageView3 sd_setImageWithURL:[NSURL URLWithString:@"https://raw.githubusercontent.com/liyong03/YLGIFImage/master/YLGIFImageDemo/YLGIFImageDemo/joy.gif"]];
|
|
|
|
[self.imageView4 sd_setImageWithURL:[NSURL URLWithString:@"http://littlesvr.ca/apng/images/SteamEngine.webp"]];
|
2016-06-13 06:13:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void)didReceiveMemoryWarning {
|
|
|
|
[super didReceiveMemoryWarning];
|
|
|
|
// Dispose of any resources that can be recreated.
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|