SCMediaItemGridCell Class Reference
Inherits from | SCItemGridCell : UICollectionViewCell |
Declared in | SCMediaItemGridCell.h SCMediaItemGridCell.m |
Overview
A UICollectionViewCell sub-class that displays the image of a given media item.
It creates a UILabel sized as the entire cell.
Tasks
-
– initWithFrame:
A designated initializer. Used by [UICollectionView dequeueReusableCellWithReuseIdentifier:forIndexPath:] to initialize the cell.
-
imageResizingOptions
Options for image resizing. It will be performed on the server side.
property
They can be assigned in the cell multiple times since cells are likely to be reused. -
– setModel:
Stores the media item in the cell object to populate its image.
-
– reloadData
Downloads the corresponding image and renders it in the cell.
Instance Methods
initWithFrame:
A designated initializer. Used by [UICollectionView dequeueReusableCellWithReuseIdentifier:forIndexPath:] to initialize the cell.
- (instancetype)initWithFrame:(CGRect)frame
Parameters
- frame
A frame to initialize cell view. See [UIView initWithFrame:] for details.
Return Value
A properly initialized cell.
Declared In
SCMediaItemGridCell.h