Created
November 9, 2016 17:16
-
-
Save petermolnar-dev/460042a4dc9beaa4771e6b3241dea6c7 to your computer and use it in GitHub Desktop.
PMOPictureController.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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