I have a UITableViewController in my application that is directly added to the view hierarchy. After the view appears, I want to go to a specific cell. My solution would be to call the code to scroll to -[viewDidAppear] .
According to Apple docs, I have to call the method manually:
If a view belonging to the view controller is directly added to the view hierarchy, the view controller will not receive this message. If you insert or add a view to the view hierarchy and have a view controller, you must send the associated control of this message directly.
Question: when is the time to call it manually?
The call from the controller of the parent view -[viewDidAppear] crashes when I try to scroll, because apparently the table view has not actually appeared yet and therefore considers that there is no scrolling for it.
iphone uitableview scroll viewdidappear
mrueg
source share