Skip to content

Instantly share code, notes, and snippets.

@keicoder
Last active January 1, 2016 04:29
Show Gist options
  • Save keicoder/8092414 to your computer and use it in GitHub Desktop.
Save keicoder/8092414 to your computer and use it in GitHub Desktop.
objective-c : UiTableView Static cell disable selections for row (정적 셀에서 셀 선택 허용하지 않기)
UiTableView Static cell disable selections for row (정적 셀에서 셀 선택 허용하지 않기)
- (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath
{

return nil; //returning nil, delegate answers : “Sorry, but you’re not allowed to!”
}
* One more thing todo : Storyboard editor, select the table view cell and go to the Attributes Inspector. Set the Selection attribute to None.
now impossible to select the row and make it turn blue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment