Inherits from SCItemListCell : UITableViewCell
Declared in SCMediaItemListCell.h
SCMediaItemListCell.m

Overview

A UITableViewCell sub-class that displays both the displayName of the media item and the corresponding image.

Tasks

Instance Methods

initWithStyle:reuseIdentifier:

Unsupported initializer that throws an exception. Do not use it.
initWithStyle:reuseIdentifier:imageParams: should be used instead.

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier

Parameters

style

See UITableViewCellStyle enum for possible values.

reuseIdentifier

this will be used by the UITableView dequeueReusableCellWithIdentifier:

Return Value

nil. The execution should not reach this point since the exception will be thrown.

Declared In

SCMediaItemListCell.h

initWithStyle:reuseIdentifier:imageParams:

The designated initializer. If the cell can be reused, you must pass in a reuse identifier. You should use the same reuse identifier for all cells of the same form.

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier imageParams:(SCDownloadMediaOptions *)imageResizingOptions

Parameters

style

See UITableViewCellStyle enum for possible values.

reuseIdentifier

this will be used by the UITableView dequeueReusableCellWithIdentifier:

imageResizingOptions

options for image resizing. It will be performed on the server side.

Return Value

A properly initialized cell object

Declared In

SCMediaItemListCell.h

reloadData

Downloads the corresponding image and renders it in the cell.

- (void)reloadData

Declared In

SCMediaItemListCell.h

setModel:

Stores the media item in the cell object to populate its image.

- (void)setModel:(SCItem *)item

Parameters

item

A sitecore item to render

Declared In

SCMediaItemListCell.h