Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Nnavick

macrumors regular
Original poster
Hi,
I want to do that when the user hit the back button the highlighted cell color become the original color,because when I hit the back button it's stays in the highlighted color and not changed till I hit another cell.

How to do it?

Thanks!
 
Hi,
I want to do that when the user hit the back button the highlighted cell color become the original color,because when I hit the back button it's stays in the highlighted color and not changed till I hit another cell.

How to do it?

Thanks!

forgot if there is an unselect ... but I think if you just call reloadData on the tableView that it won't be selected anymore.
 
forgot if there is an unselect ... but I think if you just call reloadData on the tableView that it won't be selected anymore.

non of this function is not working to me

Code:
-(void)viewWillAppear:(BOOL)animated {
    NSLog(@"viewWillAppear");
}

-(void)viewDidDisappear:(BOOL)animated {
     NSLog(@"viewDidDisappear");
}

-(void)viewWillDisappear:(BOOL)animated {
     NSLog(@"viewWillDisappear");
}

why it's happening ?
maybe the view isn't nil?
 
Have you read the Table View Programming Guide for iOS yet, in particular the section on "Selections in Table Views"?
 
non of this function is not working to me

Code:
-(void)viewWillAppear:(BOOL)animated {
    NSLog(@"viewWillAppear");
}

-(void)viewDidDisappear:(BOOL)animated {
     NSLog(@"viewDidDisappear");
}

-(void)viewWillDisappear:(BOOL)animated {
     NSLog(@"viewWillDisappear");
}

why it's happening ?
maybe the view isn't nil?

Also, I don't see any [super viewWillLoad];
[super viewWillAppear:animated]; etc.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.