I have selected Selection = None
from the storyboard scene of that static UITableViewCell
. I also added this method:
- (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath{
switch (indexPath.row) {
case 1:
return nil;
break;
}
}
Which doesn't particularly set well because it warns of a method not returning a value.
The cell is still selectable, one time, briefly and then no more. The cell is set up like this:
case 1:
cell.textLabel.text = @"Search";
break;
and the didSelectRowAtIndexPath
like so:
case 1:
NSLog(@"Unselectable Cell");
break;
Am I missing anything else?