InterfaceController.m 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 "InterfaceController.h"
  9. #import <SDWebImage/UIImageView+WebCache.h>
  10. @interface InterfaceController()
  11. @property (weak) IBOutlet WKInterfaceImage *imageInterface;
  12. @end
  13. @implementation InterfaceController
  14. - (void)awakeWithContext:(id)context {
  15. [super awakeWithContext:context];
  16. // Configure interface objects here.
  17. }
  18. - (void)willActivate {
  19. // This method is called when watch view controller is about to be visible to user
  20. [super willActivate];
  21. NSString *urlString = @"https://nr-platform.s3.amazonaws.com/uploads/platform/published_extension/branding_icon/275/AmazonS3.png";
  22. WKInterfaceImage *imageInterface = self.imageInterface;
  23. [imageInterface sd_setImageWithURL:[NSURL URLWithString:urlString]];
  24. }
  25. - (void)didDeactivate {
  26. // This method is called when watch view controller is no longer visible
  27. [super didDeactivate];
  28. }
  29. @end