UITableView

Discussion in 'iOS Programming' started by Nnavick, May 6, 2011.

  1. macrumors regular

    Joined:
    Oct 13, 2010
    #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

    Joined:
    Jul 9, 2010
    Location:
    here and there
    #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. thread starter macrumors regular

    Joined:
    Oct 13, 2010
    #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

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    Have you read the Table View Programming Guide for iOS yet, in particular the section on "Selections in Table Views"?
     
  5. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
  6. macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #6
    Also, I don't see any [super viewWillLoad];
    [super viewWillAppear:animated]; etc.
     
  7. Nnavick, May 6, 2011
    Last edited: May 6, 2011

    thread starter macrumors regular

    Joined:
    Oct 13, 2010
    #7

Share This Page