Skip to content

Instantly share code, notes, and snippets.

@petermolnar-dev
Created November 9, 2016 17:12
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/15856bae3a5f45e41448a410c1d4ce5f to your computer and use it in GitHub Desktop.
Save petermolnar-dev/15856bae3a5f45e41448a410c1d4ce5f to your computer and use it in GitHub Desktop.
PMOPictureWithURL
#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