I want to mimic the behavior of the Mail app when no results are found from the UISearchBar, and show a cell with a link to call a method. I can't figure out (or find anywhere) how to do so.
The closest I think I've come is the following (which I've added into my code)
if ([self.keys count] == 0){
[self.tableView beginUpdates];
[self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:newIndexPath] withRowAnimation:UITableViewRowAnimationBottom];
[self.tableView endUpdates];
}
[tableView reloadData];