ChoiceSocalViewController Class Reference
| Inherits from | UIViewController |
| Conforms to | UITableViewDataSource UITableViewDelegate |
| Declared in | ChoiceSocalViewController.h ChoiceSocalViewController.m |
Tasks
Other Methods
-
userproperty -
choiceproperty -
imageproperty -
descriptionproperty -
likesCountproperty -
dislikesCountproperty -
commentsTableproperty -
starRating1property -
starRating2property -
starRating3property -
starRating4property -
starRating5property
Other Methods
-
– viewDidLoad -
– viewWillAppear: -
– didReceiveMemoryWarning -
– numberOfSectionsInTableView: -
– tableView:numberOfRowsInSection: -
– tableView:titleForHeaderInSection: -
– tableView:cellForRowAtIndexPath: -
– onLikeClick: -
– onDislikeClick: -
– onStarRatingClick: -
– onAddCommentClick: -
– onClickShare: -
– alertView:clickedButtonAtIndex: -
– initializeChoiceSocialView -
– initStarRating: -
– saveSocialInfo:
Instance Methods
alertView:clickedButtonAtIndex:
Standard iOS Alert Box button handlers
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndexParameters
- alertView
The Alert View
- buttonIndex
Index to the button that was clicked
Declared In
ChoiceSocalViewController.mdidReceiveMemoryWarning
Standard iOS delegate for handling memory warnings
- (void)didReceiveMemoryWarningDeclared In
ChoiceSocalViewController.minitStarRating:
Initialize the Star Rating images
- (void)initStarRating:(int)ratingParameters
- rating
Star Rating to set
Declared In
ChoiceSocalViewController.minitializeChoiceSocialView
Helper method to initilaize this View from the Current Choice in the parent Tab Bar Controller
- (void)initializeChoiceSocialViewDeclared In
ChoiceSocalViewController.mnumberOfSectionsInTableView:
Return number of Sections in the Collection View
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableViewParameters
- collectionView
this Collection View
Return Value
Return number of Sections
Declared In
ChoiceSocalViewController.monAddCommentClick:
Handler for the Add Comment Button
- (IBAction)onAddCommentClick:(id)senderParameters
- sender
Sender of the event
Declared In
ChoiceSocalViewController.monClickShare:
Button handler for the Share button.
- (IBAction)onClickShare:(id)senderParameters
- sender
The sender for the Event
Declared In
ChoiceSocalViewController.monDislikeClick:
Handler for the Dislike Button
- (IBAction)onDislikeClick:(id)senderParameters
- sender
Sender of the event
Declared In
ChoiceSocalViewController.monLikeClick:
Handler for the Like Button
- (IBAction)onLikeClick:(id)senderParameters
- sender
Sender of the event
Declared In
ChoiceSocalViewController.monStarRatingClick:
Handler for the Star Rating Buttons
- (IBAction)onStarRatingClick:(UIButton *)senderParameters
- sender
Sender of the event
Declared In
ChoiceSocalViewController.msaveSocialInfo:
Help method to save Social Choice info
- (void)saveSocialInfo:(ChoiceModel *)newChoiceParameters
- sender
Sender of the event
Declared In
ChoiceSocalViewController.mtableView:cellForRowAtIndexPath:
Set the titles of the Sections
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPathParameters
- tableView
The Table View
- section
The Section in the Table View to update
Return Value
<#return value description#>
Declared In
ChoiceSocalViewController.mtableView:numberOfRowsInSection:
Return number of Items in the Section of the Collection View
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)sectionParameters
- section
Section the Section
- collectionView
This Collection View
Return Value
Return the number of rows in the Collection
Declared In
ChoiceSocalViewController.mtableView:titleForHeaderInSection:
Set the titles of the Sections
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)sectionParameters
- tableView
The Table View
- section
The Section in the Table View to update
Return Value
Return title
Declared In
ChoiceSocalViewController.m