A main view controller has a table view and here is the process to see the problem:
- Main view controller is presented and the table view is on the screen
- A Safari View Controller is presented
- Rotate the device.
- The app calls
scrollToRowAtIndexPathon the table view (cells have different heights for portrait/landscape mode, need to callscrollToRowAtIndexPathto the first cell before rotation so that the user can see the same cells after rotation) - Close Safari View Controller
scrollToRowAtIndexPathhad no effect on the table view.
If step 2 is ignored, scrollToRowAtIndexPath works.
I am plaing to solve the problem by calling scrollToRowAtIndexPath in viewDidAppear in the main view controller. However, is there a better way or maybe I have missed something?
