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

Properties

choice

@property (nonatomic, strong) ChoiceModel *choice

commentsTable

@property (weak, nonatomic) IBOutlet UITableView *commentsTable

description

@property (weak, nonatomic) IBOutlet UILabel *description

dislikesCount

@property (weak, nonatomic) IBOutlet UILabel *dislikesCount

image

@property (weak, nonatomic) IBOutlet UIImageView *image

likesCount

@property (weak, nonatomic) IBOutlet UILabel *likesCount

starRating1

@property (weak, nonatomic) IBOutlet UIButton *starRating1

starRating2

@property (weak, nonatomic) IBOutlet UIButton *starRating2

starRating3

@property (weak, nonatomic) IBOutlet UIButton *starRating3

starRating4

@property (weak, nonatomic) IBOutlet UIButton *starRating4

starRating5

@property (weak, nonatomic) IBOutlet UIButton *starRating5

user

@property (nonatomic, strong) UserModel *user

Instance Methods

alertView:clickedButtonAtIndex:

Standard iOS Alert Box button handlers

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex

Parameters

alertView

The Alert View

buttonIndex

Index to the button that was clicked

Declared In

ChoiceSocalViewController.m

didReceiveMemoryWarning

Standard iOS delegate for handling memory warnings

- (void)didReceiveMemoryWarning

Declared In

ChoiceSocalViewController.m

initStarRating:

Initialize the Star Rating images

- (void)initStarRating:(int)rating

Parameters

rating

Star Rating to set

Declared In

ChoiceSocalViewController.m

initializeChoiceSocialView

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

- (void)initializeChoiceSocialView

Declared In

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

ChoiceSocalViewController.m

onAddCommentClick:

Handler for the Add Comment Button

- (IBAction)onAddCommentClick:(id)sender

Parameters

sender

Sender of the event

Declared In

ChoiceSocalViewController.m

onClickShare:

Button handler for the Share button.

- (IBAction)onClickShare:(id)sender

Parameters

sender

The sender for the Event

Declared In

ChoiceSocalViewController.m

onDislikeClick:

Handler for the Dislike Button

- (IBAction)onDislikeClick:(id)sender

Parameters

sender

Sender of the event

Declared In

ChoiceSocalViewController.m

onLikeClick:

Handler for the Like Button

- (IBAction)onLikeClick:(id)sender

Parameters

sender

Sender of the event

Declared In

ChoiceSocalViewController.m

onStarRatingClick:

Handler for the Star Rating Buttons

- (IBAction)onStarRatingClick:(UIButton *)sender

Parameters

sender

Sender of the event

Declared In

ChoiceSocalViewController.m

saveSocialInfo:

Help method to save Social Choice info

- (void)saveSocialInfo:(ChoiceModel *)newChoice

Parameters

sender

Sender of the event

Declared In

ChoiceSocalViewController.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 value description#>

Declared In

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

ChoiceSocalViewController.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 title

Declared In

ChoiceSocalViewController.m

viewDidLoad

Load and initialize the Controller for the Choice Social View

- (void)viewDidLoad

Declared In

ChoiceSocalViewController.m

viewWillAppear:

Standard iOS delegate when this view is displayed.

- (void)viewWillAppear:(BOOL)animated

Parameters

animated

animated If animated view

Declared In

ChoiceSocalViewController.m