Inherits from UIViewController
Conforms to UITableViewDataSource
UITableViewDelegate
Declared in ChoiceDetailsViewController.h
ChoiceDetailsViewController.m

Properties

author

@property (weak, nonatomic) IBOutlet UILabel *author

choice

@property (nonatomic, strong) ChoiceModel *choice

content

@property (weak, nonatomic) IBOutlet UITextView *content

createdDate

@property (weak, nonatomic) IBOutlet UILabel *createdDate

description

@property (weak, nonatomic) IBOutlet UILabel *description

detailsView

@property (weak, nonatomic) IBOutlet UIView *detailsView

image

@property (weak, nonatomic) IBOutlet UIImageView *image

mediaLinksTable

@property (weak, nonatomic) IBOutlet UITableView *mediaLinksTable

mediaView

@property (weak, nonatomic) IBOutlet UIView *mediaView

private

@property (weak, nonatomic) IBOutlet UILabel *private

rating

@property (weak, nonatomic) IBOutlet UILabel *rating

referenceLinksTable

@property (weak, nonatomic) IBOutlet UITableView *referenceLinksTable

referencesView

@property (weak, nonatomic) IBOutlet UIView *referencesView

segmentControl

@property (weak, nonatomic) IBOutlet UISegmentedControl *segmentControl

user

@property (nonatomic, strong) UserModel *user

Instance Methods

didReceiveMemoryWarning

Standard iOS delegate for handling memory warnings

- (void)didReceiveMemoryWarning

Declared In

ChoiceDetailsViewController.m

getChoice

Helper method to call the Get Choice Service

- (void)getChoice

Declared In

ChoiceDetailsViewController.m

initializeChoiceDetailView

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

- (void)initializeChoiceDetailView

Declared In

ChoiceDetailsViewController.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

ChoiceDetailsViewController.m

onSegmentClick:

Handler for the Segment Control

- (IBAction)onSegmentClick:(UISegmentedControl *)sender

Parameters

sender

Sender of the event

Declared In

ChoiceDetailsViewController.m

setRatingText:

Helper method to display the Rating

- (void)setRatingText:(int)rating

Declared In

ChoiceDetailsViewController.m

tableView:cellForRowAtIndexPath:

Set the titles of the Sections

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

Parameters

tableView

The Table View

section

The Section in the Table View to update

Return Value

Return title

Declared In

ChoiceDetailsViewController.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

ChoiceDetailsViewController.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

ChoiceDetailsViewController.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

ChoiceDetailsViewController.m

viewDidLoad

Load and initialize the Controller for the Choices Detail View

- (void)viewDidLoad

Declared In

ChoiceDetailsViewController.m

viewWillAppear:

Standard iOS delegate when this view is displayed.

- (void)viewWillAppear:(BOOL)animated

Parameters

animated

animated If animated view

Declared In

ChoiceDetailsViewController.m