SCItemGridTextCell Class Reference
Inherits from | SCItemGridCell : UICollectionViewCell |
Declared in | SCItemGridTextCell.h SCItemGridTextCell.m |
Overview
A UICollectionViewCell sub-class that displays the displayName value of the given SCItem.
It creates a UILabel sized as the entire cell. It uses default font and color settings.
There is no way to configure its look and feel except of using UIAppearance API.
Tasks
-
– initWithFrame:
A designated initializer. Used by [UICollectionView dequeueReusableCellWithReuseIdentifier:forIndexPath:] to initialize the cell.
-
– setModel:
Stores the display name of a given media item.
-
– reloadData
Renders the stored displayName in the cell’s label.
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
SCItemGridTextCell.h