1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

UITableView

Discussion in 'iPhone/iPad Programming' started by Nnavick, May 6, 2011.

  1. macrumors regular

    #1
    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!
     
  2. macrumors 68000

    0815

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

    #3
    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?
     
  4. Moderator

    dejo

    Staff Member

    #4
    Have you read the Table View Programming Guide for iOS yet, in particular the section on "Selections in Table Views"?
     
  5. Moderator

    robbieduncan

    Staff Member

    #5
  6. macrumors 65816

    jnoxx

    #6
    Also, I don't see any [super viewWillLoad];
    [super viewWillAppear:animated]; etc.
     
  7. Nnavick, May 6, 2011
    Last edited: May 6, 2011

    macrumors regular

    #7

Share This Page