TWTRMediaEntitySize Class Reference
Inherits from | NSObject |
---|---|
Conforms to | NSCoding |
Declared in | TWTRMediaEntitySize.h |
name
The name of the size. ‘large’, ‘medium’, etc.
@property (nonatomic, copy, readonly) NSString *name
Declared In
TWTRMediaEntitySize.h
– initWithName:resizingMode:size:
Designated initializer.
- (instancetype)initWithName:(NSString *)name resizingMode:(TWTRMediaEntitySizeResizingMode)resizingMode size:(CGSize)size
Parameters
name |
The name of the size. If nil will default to the empty string. |
---|---|
resizingMode |
The resizing mode of this entity size. |
size |
The size of the entity. |
Declared In
TWTRMediaEntitySize.h
+ mediaEntitySizesWithJSONDictionary:
Returns a dictionary of valid TWTRMediaEntitySize
instances from the Twitter API response for media sizes.
+ (NSDictionary *)mediaEntitySizesWithJSONDictionary:(NSDictionary *)dictionary
Parameters
dictionary |
A parsed dictionary of media sizes from the Twitter API response |
---|
Declared In
TWTRMediaEntitySize.h