Skip to content

Instantly share code, notes, and snippets.

Created December 29, 2012 09:13
Show Gist options
  • Select an option

  • Save anonymous/4405683 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/4405683 to your computer and use it in GitHub Desktop.
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
if (tableView == self.searchDisplayController.searchResultsTableView) {
return [filteredResult count];
}
else {
switch (section) {
case 0:
return [luzonRegion count];
break;
case 1:
return [visayasRegion count];
break;
case 2:
return [mindanaoRegion count];
break;
default:
break;
}
}
return section;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment