Inherits from NSObject
Declared in TSTableViewModel.h

Overview

TSRow provides information about table row content (cells) and hierarchy (subrows).

Properties

cells

Array of TSCell objects.

@property (nonatomic, strong) NSArray *cells

Declared In

TSTableViewModel.h

subrows

Array of TSRow objects (subrows).

@property (nonatomic, strong) NSMutableArray *subrows

Declared In

TSTableViewModel.h

Class Methods

rowWithCells:

Create row with set of cells.

+ (id)rowWithCells:(NSArray *)cells

Parameters

cells

Array may contain mix of TSCell objects and any other NSObject value (which would be converted to TSCell).

Declared In

TSTableViewModel.h

rowWithCells:andSubrows:

Create row with set of cells.

+ (id)rowWithCells:(NSArray *)cells andSubrows:(NSArray *)subrows

Parameters

cells

Array may contain mix of TSCell objects and any other NSObject value (which would be converted to TSCell).

subrows

Array may contain mix of TSRow and NSArray objects.

Declared In

TSTableViewModel.h

rowWithDictionary:

Create row with dictionary which define content TSRow.

+ (id)rowWithDictionary:(NSDictionary *)info

Parameters

info

Dictionary containes values for cells and subrows.

 NSDictionary *rowInfo = @{
 @"cells" : @[
        @{ @"value" : @1 },  
        @{ @"value" : @1 },  
        @{ @"value" : @1 } 
    ],
 @"subrows" : @[
             @{ @"cells" : @[ 
                            @{ @"value" : @1 },  
                            @{ @"value" : @1 },  
                            @{ @"value" : @1 } ] },
             @{ @"cells" : @[ 
                            @{ @"value" : @1 }, 
                            @{ @"value" : @1 },  
                            @{ @"value" : @1 } ] },
     ]
 };

Declared In

TSTableViewModel.h

Instance Methods

initWithCells:

Initialize row with set of cells.

- (id)initWithCells:(NSArray *)cells

Parameters

cells

Array may contain mix of TSCell objects and any other NSObject value (which would be converted to TSCell).

Declared In

TSTableViewModel.h

initWithCells:andSubrows:

Initialize row with set of cells.

- (id)initWithCells:(NSArray *)cells andSubrows:(NSArray *)subrows

Parameters

cells

Array may contain mix of TSCell objects and any other NSObject value (which would be converted to TSCell).

subrows

Array may contain mix of TSRow and NSArray objects.

Declared In

TSTableViewModel.h

initWithDictionary:

Initialize row with dictionary which define content TSRow.

- (id)initWithDictionary:(NSDictionary *)info

Parameters

info

Dictionary containes values for cells and subrows.

 NSDictionary *rowInfo = @{
     @"cells" : @[
         @{ @"value" : @1 },
         @{ @"value" : @1 },
         @{ @"value" : @1 }
     ],
     @"subrows" : @[
         @{ @"cells" : @[
             @{ @"value" : @1 },
             @{ @"value" : @1 },
             @{ @"value" : @1 } ] },
         @{ @"cells" : @[
             @{ @"value" : @1 },
             @{ @"value" : @1 },
             @{ @"value" : @1 } ] },
     ]
 };

Declared In

TSTableViewModel.h