2016-06-01 20:53:08 +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.
|
|
|
|
*/
|
2012-05-10 06:30:48 +08:00
|
|
|
|
|
|
|
#import "DetailViewController.h"
|
2018-04-19 16:23:17 +08:00
|
|
|
#import <SDWebImage/SDWebImage.h>
|
2012-05-10 06:30:48 +08:00
|
|
|
|
|
|
|
@interface DetailViewController ()
|
2016-06-01 15:06:37 +08:00
|
|
|
|
2017-12-21 11:43:46 +08:00
|
|
|
@property (strong, nonatomic) IBOutlet SDAnimatedImageView *imageView;
|
2016-06-01 15:06:37 +08:00
|
|
|
|
2012-05-10 06:30:48 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation DetailViewController
|
|
|
|
|
2018-08-29 18:54:48 +08:00
|
|
|
- (void)configureView {
|
2018-01-20 23:40:16 +08:00
|
|
|
if (!self.imageView.sd_imageIndicator) {
|
|
|
|
self.imageView.sd_imageIndicator = SDWebImageProgressIndicator.defaultIndicator;
|
|
|
|
}
|
2017-11-05 06:30:43 +08:00
|
|
|
[self.imageView sd_setImageWithURL:self.imageURL
|
|
|
|
placeholderImage:nil
|
2018-04-19 22:27:28 +08:00
|
|
|
options:SDWebImageProgressiveLoad];
|
2012-05-10 06:30:48 +08:00
|
|
|
}
|
|
|
|
|
2018-08-29 18:54:48 +08:00
|
|
|
- (void)viewDidLoad {
|
2012-05-10 06:30:48 +08:00
|
|
|
[super viewDidLoad];
|
|
|
|
[self configureView];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|