mirror of
https://github.com/SDWebImage/SDWebImage.git
synced 2026-06-06 19:37:51 +00:00
- move the webp component + the libwebp dependency to SDWebImage/SDWebImageWebPCoder (including tests and demo) - Xcode 9.4 - instead of directly linking the Demos to the frameworks, using CocoaPods (`Examples/Podfile`). This allows using SDWebImage/SDWebImageWebPCoder into our examples so we keep the WebP demos - demos code cleanup and warnings resolved - all links from docs (README, Migration guide, CHANGELOG) are full links, so they work even from external pages (i.e. https://cocoapods.org/pods/SDWebImage). - added "Additional modules" section to README
35 lines
861 B
Objective-C
35 lines
861 B
Objective-C
/*
|
|
* 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.
|
|
*/
|
|
|
|
#import "DetailViewController.h"
|
|
#import <SDWebImage/SDWebImage.h>
|
|
|
|
@interface DetailViewController ()
|
|
|
|
@property (strong, nonatomic) IBOutlet SDAnimatedImageView *imageView;
|
|
|
|
@end
|
|
|
|
@implementation DetailViewController
|
|
|
|
- (void)configureView {
|
|
if (!self.imageView.sd_imageIndicator) {
|
|
self.imageView.sd_imageIndicator = SDWebImageProgressIndicator.defaultIndicator;
|
|
}
|
|
[self.imageView sd_setImageWithURL:self.imageURL
|
|
placeholderImage:nil
|
|
options:SDWebImageProgressiveLoad];
|
|
}
|
|
|
|
- (void)viewDidLoad {
|
|
[super viewDidLoad];
|
|
[self configureView];
|
|
}
|
|
|
|
@end
|