ChoiceDetailsViewController Class Reference
| Inherits from | UIViewController |
| Conforms to | UITableViewDataSource UITableViewDelegate |
| Declared in | ChoiceDetailsViewController.h ChoiceDetailsViewController.m |
Tasks
Other Methods
-
userproperty -
choiceproperty -
detailsViewproperty -
mediaViewproperty -
referencesViewproperty -
segmentControlproperty -
– onSegmentClick: -
mediaLinksTableproperty -
referenceLinksTableproperty -
imageproperty -
descriptionproperty -
contentproperty -
authorproperty -
createdDateproperty -
ratingproperty -
privateproperty
Other Methods
Instance Methods
didReceiveMemoryWarning
Standard iOS delegate for handling memory warnings
- (void)didReceiveMemoryWarningDeclared In
ChoiceDetailsViewController.mgetChoice
Helper method to call the Get Choice Service
- (void)getChoiceDeclared In
ChoiceDetailsViewController.minitializeChoiceDetailView
Helper method to initilaize this View from the Current Choice in the parent Tab Bar Controller
- (void)initializeChoiceDetailViewDeclared In
ChoiceDetailsViewController.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
ChoiceDetailsViewController.monSegmentClick:
Handler for the Segment Control
- (IBAction)onSegmentClick:(UISegmentedControl *)senderParameters
- sender
Sender of the event
Declared In
ChoiceDetailsViewController.msetRatingText:
Helper method to display the Rating
- (void)setRatingText:(int)ratingDeclared In
ChoiceDetailsViewController.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 title
Declared In
ChoiceDetailsViewController.mtableView:didSelectRowAtIndexPath:
When a Cell in the Table View is selected
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPathParameters
- tableView
The Table View
- indexPath
Index to the Cell in the Table View
Return Value
Return the Cell
Declared In
ChoiceDetailsViewController.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
ChoiceDetailsViewController.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 value description#>
Declared In
ChoiceDetailsViewController.m