The iOS framework that grows only as fast as its documentation
NISubtitleCellObject Class Reference

Overview

An object for displaying two lines of text in a table view cell.

This object maps by default to a NITextCell and displays the title with a UITableViewCellStyleSubtitle cell. You can customize the cell class using the NICellObject methods.

Inheritance diagram for NISubtitleCellObject:
NITitleCellObject NICellObject <NICellObject>

Tasks

NSString * subtitle property
 
UITableViewCellStyle cellStyle property
 
(id) - initWithTitle:subtitle:
 
(id) - initWithTitle:subtitle:image:cellClass:userInfo:
 
(id) + objectWithTitle:subtitle:
 
NSString * title property
 
(id) - initWithTitle:image:
 
(id) - initWithTitle:
 
(id) - initWithTitle:image:cellClass:userInfo:
 
(id) + objectWithTitle:image:
 
(id) + objectWithTitle:
 
id userInfo property
 
(Class) - cellClass
 
(UITableViewCellStyle) - cellStyle
 

Method Documentation

subtitle

The text to be displayed in the subtitle portion of the cell.

@property (nonatomic, copy) NSString* subtitle;

cellStyle

The type of UITableViewCell to instantiate.

@property (nonatomic) UITableViewCellStyle cellStyle;
Discussion

By default this is UITableViewCellStyleSubtitle.

initWithTitle:subtitle:

Initializes the NICellObject with NITextCell as the cell class and the given title and subtitle text.

- (id)initWithTitle:(NSString *)title subtitle:(NSString *)subtitle;

initWithTitle:subtitle:image:cellClass:userInfo:

Initializes the NISubtitleCellObject with the given title, subtitle, image, cellClass, and userInfo.

- (id)initWithTitle:(NSString *)title subtitle:(NSString *)subtitle image:(UIImage *)image cellClass:(Class)cellClass userInfo:(id)userInfo;
Discussion

This is the designated initializer. Use of this initializer allows for customization of the associated cell class for this object.

objectWithTitle:subtitle:

Convenience method for initWithTitle:subtitle:.

+ (id)objectWithTitle:(NSString *)title subtitle:(NSString *)subtitle;
Discussion
Returns
Autoreleased instance of NISubtitleCellObject.

title

The text to be displayed in the cell.

@property (nonatomic, copy) NSString* title;

initWithTitle:image:

Initializes the NITitleCellObject with NITextCell as the cell class and the given title text and image.

- (id)initWithTitle:(NSString *)title image:(UIImage *)image;

initWithTitle:

Initializes the NITitleCellObject with NITextCell as the cell class and the given title text.

- (id)initWithTitle:(NSString *)title;

initWithTitle:image:cellClass:userInfo:

Initializes the NITitleCellObject with the given title, image, cellClass, and userInfo.

- (id)initWithTitle:(NSString *)title image:(UIImage *)image cellClass:(Class)cellClass userInfo:(id)userInfo;
Discussion

This is the designated initializer. Use of this initializer allows for customization of the associated cell class for this object.

objectWithTitle:image:

Convenience method for initWithTitle:image:.

+ (id)objectWithTitle:(NSString *)title image:(UIImage *)image;
Discussion
Returns
Autoreleased instance of NITitleCellObject.

objectWithTitle:

Convenience method for initWithTitle:.

+ (id)objectWithTitle:(NSString *)title;
Discussion
Returns
Autoreleased instance of NITitleCellObject.

userInfo

An object that can be used to populate information in the cell.

@property (nonatomic, strong) id userInfo;

cellClass

The class of cell to be created when this object is passed to the cell factory.

- (Class)cellClass;
Discussion

cellStyle

The style of UITableViewCell to be used when initializing the cell for the first time.

- (UITableViewCellStyle)cellStyle;
Discussion