OCKInsightsViewController Class Reference

Inherits from UIViewController
Declared in OCKInsightsViewController.h

The OCKInsightsViewController class is a view controller that displays an array of OCKInsightItem objects.

– initWithInsightItems:headerTitle:headerSubtitle:

Returns an initialzed insights view controller using the specified items.

- (instancetype)initWithInsightItems:(NSArray<OCKInsightItem*> *)items headerTitle:(nullable NSString *)headerTitle headerSubtitle:(nullable NSString *)headerSubtitle

Parameters

items

An array of OCKInsightItem objects.

headerTitle

A string representing the title in the header view.

headerSubtitle

A string representing the subtitle in the header view.

Return Value

An initialized insights view controller.

Declared In

OCKInsightsViewController.h

– initWithInsightItems:

Returns an initialzed insights view controller using the specified items.

- (instancetype)initWithInsightItems:(NSArray<OCKInsightItem*> *)items

Parameters

items

An array of OCKInsightItem objects.

Return Value

An initialized insights view controller.

Declared In

OCKInsightsViewController.h

  items

An array of insight items.

@property (nonatomic, copy) NSArray<OCKInsightItem*> *items

Declared In

OCKInsightsViewController.h

  headerTitle

A string representing the title in the header view.

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

Discussion

Single-lined.

Declared In

OCKInsightsViewController.h

  headerSubtitle

A string representing the subtitle in the header view.

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

Discussion

Maximum of 2 lines.

Declared In

OCKInsightsViewController.h

  showEdgeIndicators

A boolean to show the edge indicators.

@property (nonatomic) BOOL showEdgeIndicators

Discussion

The default value is NO.

Declared In

OCKInsightsViewController.h