12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- //
- // ViewController.m
- // gifImageDemo
- //
- // Created by LTX on 2017/7/18.
- // Copyright © 2017年 LTX. All rights reserved.
- //
- #import "ViewController.h"
- #import "FLAnimatedImageView+WebCache.h"
- #import <SDWebImage/UIImageView+WebCache.h>
- @interface ViewController ()
- @property (weak, nonatomic) IBOutlet FLAnimatedImageView *bigImageView;
- @property (strong, nonatomic) UIImageView *imageView;
- @end
- @implementation ViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self.bigImageView sd_setImageWithURL:[NSURL URLWithString:@"https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif"] placeholderImage:nil];
- // [self test2];
-
- }
- - (void)test2
- { _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(100, 200, 200, 200)];
- [self.view addSubview:_imageView];
- [_imageView sd_setImageWithURL:[NSURL URLWithString:@"https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif"] placeholderImage:nil];
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- @end
|