problem:
table is in view A, when row in table is selected, jump to view B
then jump back to view A, the row is still selected( in blue color)
solution:
in viewWillAppear method of view A:
NSIndexPath *selection = [self.tableView indexPathForSelectedRow];
if(selection)
{
[self.tableView deselectRowAtIndexPath:selection animated:YES];
}
[self.tableView reloadData];
沒有留言:
張貼留言