When you select a cell and move to detail view and go back to the table view by tapping back button, the background color of the cell you selected last time is highlighted.
How can I highlight another cell which is not selected before, when coming back to the table view from detail view?
For example, in case of Apple’s Music app, when you select and play a song and change the song by tapping next track button and go back to the song table view, the highlighted cell is not the song you listened last time but the song you selected last time in the table view.
But I want to highlight the song you listened last time.
Is that possible?
In view will appear method you have to deselect previous selection with below function
– deselectRowAtIndexPath:animated:
And After that for selection you have to call below method In view will appear
– selectRowAtIndexPath:animated:scrollPosition: