Skip to content

Instantly share code, notes, and snippets.

@petermolnar-dev
Created November 9, 2016 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petermolnar-dev/460042a4dc9beaa4771e6b3241dea6c7 to your computer and use it in GitHub Desktop.
Save petermolnar-dev/460042a4dc9beaa4771e6b3241dea6c7 to your computer and use it in GitHub Desktop.
PMOPictureController.h
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface PMOPictureController : NSObject
/**
The designated initializer, the picture's url is mandatory to pass.
@param url The picture full url, as NSURL
@return An instance PMOPictureController.
*/
- (nonnull instancetype)initWithPictureURL:(nonnull NSURL *)url NS_DESIGNATED_INITIALIZER;
/**
Start the asynchron download of the image.
*/
- (void)downloadImage;
/**
A high level, public API function to retrieve the image as UIImage
@return an instance of UIImage.
*/
- (nullable UIImage *)image;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment