Last active
January 1, 2016 04:29
-
-
Save keicoder/8092414 to your computer and use it in GitHub Desktop.
objective-c : UiTableView Static cell disable selections for row (정적 셀에서 셀 선택 허용하지 않기)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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