UITableCell - How do I turn off the selected state of the cell when user navigates back to view?

You could deselect the cell before or after you have pushed the new viewcontroller (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ aTableView deselectRowAtIndexPath:indexPath animated:YES; // create and push new viewController }.

You could deselect the cell before or after you have pushed the new viewcontroller. - (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ aTableView deselectRowAtIndexPath:indexPath animated:YES; // create and push new viewController }.

There are two ways you can do the same thing: Either Reload the whole Table in View will Appear -(void)viewWillAppear:(BOOL)animated{ super viewWillAppear:animated; YourTableView reloadData; } OR Either -(void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ YourTableView deselectRowAtIndexPath:indexPath animated:YES; } Looking at performance wise second one is best solution to use.

I'm struggling a little to understand your problem, but viewDidLoad only runs when the view loads: not when you come back to screen A : its still loaded then. I tend to create tabs programatically rather than using the IB: its clearer whats going on. Take a look at this answer to show how I do it.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions