Created
November 9, 2016 17:12
-
-
Save petermolnar-dev/15856bae3a5f45e41448a410c1d4ce5f to your computer and use it in GitHub Desktop.
PMOPictureWithURL
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> | |
/** | |
An example class for storing a downloaded image and it URL. | |
*/ | |
@interface PMOPictureWithURL : NSObject | |
/** | |
The stored image | |
*/ | |
@property (strong, nonatomic, nullable) UIImage *image; | |
/** | |
The url of the image | |
*/ | |
@property (strong, nonatomic, nonnull) NSURL *imageURL; | |
/** | |
Designated initializer | |
@param url Full url for the picture | |
@return Instance of PMOPictureWithURL | |
*/ | |
- (nonnull instancetype)initWithPictureURL:(nonnull NSURL *)url NS_DESIGNATED_INITIALIZER; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment