Created
March 21, 2017 04:53
-
-
Save phucnm/7ab09b99bb32709dce7848fac8cb2a53 to your computer and use it in GitHub Desktop.
How to disable deselect a table view cell
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
| //Implement this delegate function | |
| - (NSIndexPath *)tableView:(UITableView *)tableView willDeselectRowAtIndexPath:(NSIndexPath *)indexPath { | |
| if (<#condition#>) { | |
| return nil; | |
| } | |
| return indexPath; | |
| } | |
| //To disable selection a table view cell | |
| //Implement tableView:willSelectRowAtIndexPath: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment