I have some cells in a table view that ordinarily aren’t selectable. The user has to use the detail disclosure accessory to push a new controller with the details of the item.
However, on returning to the table view, I would like to highlight the row so that it is clear where s/he came from. To achieve this, I temporarily set the selectionStyle to blue, select/deselect the row, and then set the selectionStyle back to none.
However, because the cell returns to selectionStyleNone immediately, the end result is a gray select/deselect instead of the blue one.
1) How can I delay this setting of the selectionStyle until the deselect is completed?
2) My cell will temporarily selectable for the fast fingered in the meantime – how might I avoid this?
You can use a simple NSTimer to set the selection style to none after a set time frame like so…
…or you can use a custom animation to fade it out gracefully