DetailViewController.m 861 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * This file is part of the SDWebImage package.
  3. * (c) Olivier Poitrey <rs@dailymotion.com>
  4. *
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. */
  8. #import "DetailViewController.h"
  9. #import <SDWebImage/SDWebImage.h>
  10. @interface DetailViewController ()
  11. @property (strong, nonatomic) IBOutlet SDAnimatedImageView *imageView;
  12. @end
  13. @implementation DetailViewController
  14. - (void)configureView {
  15. if (!self.imageView.sd_imageIndicator) {
  16. self.imageView.sd_imageIndicator = SDWebImageProgressIndicator.defaultIndicator;
  17. }
  18. [self.imageView sd_setImageWithURL:self.imageURL
  19. placeholderImage:nil
  20. options:SDWebImageProgressiveLoad];
  21. }
  22. - (void)viewDidLoad {
  23. [super viewDidLoad];
  24. [self configureView];
  25. }
  26. @end