Inherits from UITableViewController
Declared in ChoiceListViewController.h
ChoiceListViewController.m

Properties

choices

@property (strong, nonatomic) NSMutableArray<ChoiceModel> *choices

currentChoicePath

@property (nonatomic, strong) NSString *currentChoicePath

pathText

@property (weak, nonatomic) IBOutlet UILabel *pathText

topics

@property (strong, nonatomic) NSMutableArray<ChoiceTopicModel> *topics

upPathButton

@property (weak, nonatomic) IBOutlet UIButton *upPathButton

user

@property (nonatomic, strong) UserModel *user

Instance Methods

didReceiveMemoryWarning

Standard iOS delegate for handling memory warnings

- (void)didReceiveMemoryWarning

Declared In

ChoiceListViewController.m

getChoices:

Helper method to call the Get Choices Service

- (void)getChoices:(NSString *)path

Declared In

ChoiceListViewController.m

initStarRating:::

Initialize the Star Rating image for a Choice

- (void)initStarRating:(ChoiceListCell *)cell :

Parameters

rating

Star Rating to set

Declared In

ChoiceListViewController.m

initializeChoicesListView

Helper method to initilaize this View from the Current Choice Path in the parent Tab Bar Controller

- (void)initializeChoicesListView

Declared In

ChoiceListViewController.m

numberOfSectionsInTableView:

Return number of Sections in the Collection View

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView

Parameters

collectionView

this Collection View

Return Value

Return number of Sections

Declared In

ChoiceListViewController.m

onUpPathClick:

Handler for the Up Path button

- (IBAction)onUpPathClick:(id)sender

Parameters

sender

Sender of the event

Declared In

ChoiceListViewController.m

resetChoices

Helper method to reset the current Choice Topics and Choices so initializeChoicesListView() will load new Choices

- (void)resetChoices

Declared In

ChoiceListViewController.m

tableView:accessoryButtonTappedForRowWithIndexPath:

When a Disclosure Button in the Table Cell is clicked

- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath

Parameters

tableView

The Table View

indexPath

Index to the Cell in the Table View

Return Value

Return the Cell

Declared In

ChoiceListViewController.m

tableView:cellForRowAtIndexPath:

Initialize a Cell in the Table View

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

Parameters

tableView

The Table View

indexPath

Index to the Cell in the Table View

Return Value

Return the Cell

Declared In

ChoiceListViewController.m

tableView:didSelectRowAtIndexPath:

When a Cell in the Table View is selected

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

Parameters

tableView

The Table View

indexPath

Index to the Cell in the Table View

Return Value

Return the Cell

Declared In

ChoiceListViewController.m

tableView:numberOfRowsInSection:

Return number of Items in the Section of the Collection View

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section

Parameters

section

Section the Section

collectionView

This Collection View

Return Value

Return the number of rows in the Collection

Declared In

ChoiceListViewController.m

tableView:titleForHeaderInSection:

Set the titles of the Sections

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section

Parameters

tableView

The Table View

section

The Section in the Table View to update

Return Value

<#return value description#>

Declared In

ChoiceListViewController.m

viewDidLoad

Load and initialize the Controller for the Choices List View

- (void)viewDidLoad

Declared In

ChoiceListViewController.m

viewWillAppear:

Standard iOS delegate when this view is displayed.

- (void)viewWillAppear:(BOOL)animated

Parameters

animated

animated If animated view

Declared In

ChoiceListViewController.m