Deselect Table Row with Animation

Here is a quick little trick to automatically deselect a table row once tapped by a user. With the approach below you can also adjust the length of the delay (in seconds) before the deselection occurs.
When working with a table, when a row is selected didSelectRowAtIndexPath is called, inside this method after you take care of any other business, call performSelector specifying a method to call and a delay. In the called method simply deselect the table row as shown below:

 

Leave a Reply

Your email address will not be published. Required fields are marked *



*