Inherits from NSObject
Declared in MSFKImage.h
MSFKImage.m

Overview

A class that represents an image that is located on a web server.

Properties

URL

The image URL.

@property (nonatomic, strong) NSURL *URL

Discussion

The image URL.

Declared In

MSFKImage.h

height

The image height, in pixels.

@property (nonatomic) NSInteger height

Discussion

The image height, in pixels.

Declared In

MSFKImage.h

width

The image width, in pixels.

@property (nonatomic) NSInteger width

Discussion

The image width, in pixels.

Declared In

MSFKImage.h

Instance Methods

JSONObject

Create a JSON object which can serialized with NSJSONSerialization to pass to the receiver.

- (id)JSONObject

Discussion

Create a JSON object which can serialized with NSJSONSerialization to pass to the receiver.

Declared In

MSFKImage.h

initWithJSONObject:

Initalizes this MSFKImage from its JSON representation.

- (id)initWithJSONObject:(id)jsonObject

Discussion

Initalizes this MSFKImage from its JSON representation.

Declared In

MSFKImage.h

initWithURL:width:height:

Constructs a new {@link MediaImage} with the given URL and dimensions. Designated initializer. Asserts that the URL is not be null or empty, and the dimensions are not invalid.

- (id)initWithURL:(NSURL *)URL width:(NSInteger)width height:(NSInteger)height

Parameters

width

The width of the image, in pixels.

height

The height of the image, in pixels.

url

The URL of the image.

Discussion

Constructs a new {@link MediaImage} with the given URL and dimensions. Designated initializer. Asserts that the URL is not be null or empty, and the dimensions are not invalid.

Declared In

MSFKImage.h