Skip to content

Instantly share code, notes, and snippets.

@beelsebob
Forked from anonymous/gist:4405683
Last active December 10, 2015 08:08
Show Gist options
  • Select an option

  • Save beelsebob/4405689 to your computer and use it in GitHub Desktop.

Select an option

Save beelsebob/4405689 to your computer and use it in GitHub Desktop.
@property (copy) NSArray regions;
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return (if tableView == self.searchDisplayController.searchResultsTableView
then [filteredResult count]
else [regions[section] count]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment