SearchViewController Class Reference
| Inherits from | UITableViewController |
| Conforms to | UISearchBarDelegate UITableViewDataSource UITableViewDelegate |
| Declared in | SearchViewController.h SearchViewController.m |
Tasks
Other Methods
-
userproperty -
topicsproperty -
choicesproperty -
segmentControlproperty -
searchBarproperty
Other Methods
-
– viewDidLoad -
– viewWillAppear: -
– didReceiveMemoryWarning -
– searchBarSearchButtonClicked: -
– touchesBegan:withEvent: -
– numberOfSectionsInTableView: -
– tableView:numberOfRowsInSection: -
– tableView:titleForHeaderInSection: -
– tableView:cellForRowAtIndexPath: -
– tableView:accessoryButtonTappedForRowWithIndexPath: -
– tableView:didSelectRowAtIndexPath: -
– doSearch:::
Instance Methods
didReceiveMemoryWarning
Standard iOS delegate for handling memory warnings
- (void)didReceiveMemoryWarningDeclared In
SearchViewController.mdoSearch:::
Helper method to call the Search Service
- (void)doSearch:(int)searchType :Declared In
SearchViewController.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
SearchViewController.msearchBarSearchButtonClicked:
Standard iOS delegate for search button handling in search bar.
- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBarReturn Value
<#return value description#>
Declared In
SearchViewController.mtableView:accessoryButtonTappedForRowWithIndexPath:
When a Disclosure Button in the Table Cell is clicked
- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPathParameters
- tableView
The Table View
- indexPath
Index to the Cell in the Table View
Return Value
Return the Cell
Declared In
SearchViewController.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
SearchViewController.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
SearchViewController.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
SearchViewController.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
SearchViewController.mtouchesBegan:withEvent:
Standard iOS delegate for dismissing keyboard in text boxes.
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)eventReturn Value
<#return value description#>
Declared In
SearchViewController.m