UITableView Question. How do I preselect a tableView cell?

Posted by dugla on Stack Overflow See other posts from Stack Overflow or by dugla
Published on 2010-06-12T15:29:59Z Indexed on 2010/06/12 15:32 UTC
Read the original article Hit count: 474

I assumed that the correct way to preselect a cell in a table view was:

- (void)selectRowAtIndexPath:(NSIndexPath *)indexPath 
                    animated:(BOOL)animated 
              scrollPosition:(UITableViewScrollPosition)scrollPosition

However it does absolutely nothing. Nadda.

For context I am building an iPad app and the tableview is deployed from a Popover ViewController. So the tableView is only visible when deployed. I am currently calling the above method in:

- (void)viewDidAppear:(BOOL)animated;

Any thoughts?

Thanks,
Doug

© Stack Overflow or respective owner

Related posts about uitableview

Related posts about ipad