40 lines
1.3 KiB
Objective-C
40 lines
1.3 KiB
Objective-C
//
|
|
// ViewController.m
|
|
// SDWebImage TV Demo
|
|
//
|
|
// Created by Bogdan on 13/06/16.
|
|
// Copyright © 2016 Dailymotion. All rights reserved.
|
|
//
|
|
|
|
#import "ViewController.h"
|
|
#import <SDWebImage/FLAnimatedImageView+WebCache.h>
|
|
|
|
@interface ViewController ()
|
|
|
|
@property (weak, nonatomic) IBOutlet FLAnimatedImageView *imageView1;
|
|
@property (weak, nonatomic) IBOutlet FLAnimatedImageView *imageView2;
|
|
@property (weak, nonatomic) IBOutlet FLAnimatedImageView *imageView3;
|
|
@property (weak, nonatomic) IBOutlet FLAnimatedImageView *imageView4;
|
|
|
|
@end
|
|
|
|
|
|
@implementation ViewController
|
|
|
|
- (void)viewDidLoad {
|
|
[super viewDidLoad];
|
|
// Do any additional setup after loading the view, typically from a nib.
|
|
|
|
[self.imageView1 sd_setImageWithURL:[NSURL URLWithString:@"http://assets.sbnation.com/assets/2512203/dogflops.gif"]];
|
|
[self.imageView2 sd_setImageWithURL:[NSURL URLWithString:@"http://www.ioncannon.net/wp-content/uploads/2011/06/test2.webp"]];
|
|
[self.imageView3 sd_setImageWithURL:[NSURL URLWithString:@"http://s3.amazonaws.com/fast-image-cache/demo-images/FICDDemoImage000.jpg"]];
|
|
[self.imageView4 sd_setImageWithURL:[NSURL URLWithString:@"http://s3.amazonaws.com/fast-image-cache/demo-images/FICDDemoImage001.jpg"]];
|
|
}
|
|
|
|
- (void)didReceiveMemoryWarning {
|
|
[super didReceiveMemoryWarning];
|
|
// Dispose of any resources that can be recreated.
|
|
}
|
|
|
|
@end
|