Inherits from NSObject
Declared in TKDataSourceGroup.h

Overview

Represents a group of items sharing the same group key in TKDataSource.

Properties

displayKey

A display key specific for this group. TKDataSource displayKey property is used if this property value is set to nil.

@property (nonatomic, copy, nullable) NSString *displayKey

Declared In

TKDataSourceGroup.h

items

An array containing the items specific for this group.

@property (nonatomic, strong, nonnull) NSArray *items

Declared In

TKDataSourceGroup.h

key

The group key.

@property (nonatomic, strong, nonnull) id key

Declared In

TKDataSourceGroup.h

valueKey

A value key specific for this group. TKDataSource valueKey property is used if this property value is set to nil.

@property (nonatomic, copy, nullable) NSString *valueKey

Declared In

TKDataSourceGroup.h

Instance Methods

initWithItems:

Initializes the group with an array of items.

- (instancetype __nonnull)initWithItems:(NSArray *__nonnull)items

Parameters

items

The items array specific for this group.

Declared In

TKDataSourceGroup.h

initWithItems:valueKey:

Initializes the group with an array of items an a value key.

- (instancetype __nonnull)initWithItems:(NSArray *__nonnull)items valueKey:(NSString *__nullable)valueKey

Parameters

items

The items array specific for this group.

valueKey

The value key.

Declared In

TKDataSourceGroup.h

initWithItems:valueKey:displayKey:

Initializes the group with an array of items value and display keys.

- (instancetype __nonnull)initWithItems:(NSArray *__nonnull)items valueKey:(NSString *__nullable)valueKey displayKey:(NSString *__nullable)displayKey

Parameters

items

The items array specific for this group.

valueKey

The value key.

displayKey

The display key.

Declared In

TKDataSourceGroup.h