Inherits from NSObject
Declared in TSTableViewModel.h

Overview

TSCell provides inforamation about TableView cell content.

Properties

details

Details text for cell.

@property (nonatomic, strong) NSString *details

Declared In

TSTableViewModel.h

detailsColor

Details color.

@property (nonatomic, strong) UIColor *detailsColor

Declared In

TSTableViewModel.h

icon

Icon image for cell.

@property (nonatomic, strong) UIImage *icon

Declared In

TSTableViewModel.h

textAlignment

Text aligment in cell.

@property (nonatomic, assign) NSTextAlignment textAlignment

Declared In

TSTableViewModel.h

textColor

Text color.

@property (nonatomic, strong) UIColor *textColor

Declared In

TSTableViewModel.h

value

Value for cell (NSString, NSNumber etc).

@property (nonatomic, strong) NSObject *value

Declared In

TSTableViewModel.h

Class Methods

cellWithDictionary:

Create cell with dictionary which define content and properties of TSCell.

+ (id)cellWithDictionary:(NSDictionary *)info

Parameters

info

Dictionary containes values for named properties of TSCell.

 NSDictionary *cellInfo = @{
    @"value" : @1,
    @"icon" : @"image.png"
 };

Declared In

TSTableViewModel.h

cellWithValue:

Create cell with value.

+ (id)cellWithValue:(NSObject *)value

Parameters

value

NSObject value type. Provide NSString, NSNumber etc arguments.

Declared In

TSTableViewModel.h

Instance Methods

initWithDictionary:

Initialize cell with dictionary which define content and properties of TSCell.

- (id)initWithDictionary:(NSDictionary *)info

Parameters

info

Dictionary containes values for named properties of TSCell.

 NSDictionary *cellInfo = @{
     @"value" : @1,
     @"icon" : @"image.png"
 };

Declared In

TSTableViewModel.h

initWithValue:

Initialize cell with value.

- (id)initWithValue:(NSObject *)value

Parameters

value

NSObject value type. Provide NSString, NSNumber etc arguments.

Declared In

TSTableViewModel.h