SelectRowAtIndexPath failing in viewWillAppear?

Now working! (void)viewDidAppear:(BOOL)animated { super viewDidAppear:animated; self tableView reloadData; int isPage = _delegate returnPageNumber; NSIndexPath *scrollIndexPath = NSIndexPath indexPathForRow:(isPage) inSection:0; NSLog(@"viewDidAppear scrollIndexPath is %@",scrollIndexPath); self tableView selectRowAtIndexPath:scrollIndexPath animated:YES scrollPosition:UITableViewScrollPositionNone; } The thing that made the difference was disconnecting the view outlet and then reconnecting it to the tableview. Not sure why this made a difference?

I tried adding a view controller to the nib but it made no difference, so deleting it and reconnecting the view to the the tableview suddenly produced results. Voodoo.

Now working! - (void)viewDidAppear:(BOOL)animated { super viewDidAppear:animated; self tableView reloadData; int isPage = _delegate returnPageNumber; NSIndexPath *scrollIndexPath = NSIndexPath indexPathForRow:(isPage) inSection:0; NSLog(@"viewDidAppear scrollIndexPath is %@",scrollIndexPath); self tableView selectRowAtIndexPath:scrollIndexPath animated:YES scrollPosition:UITableViewScrollPositionNone; } The thing that made the difference was disconnecting the view outlet and then reconnecting it to the tableview. Not sure why this made a difference?

I tried adding a view controller to the nib but it made no difference, so deleting it and reconnecting the view to the the tableview suddenly produced results. Voodoo.

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