خرید بک لینک

Vote count: 0

A main view controller has a table view and here is the process to see the problem:

  1. Main view controller is presented and the table view is on the screen
  2. A Safari View Controller is presented
  3. Rotate the device.
  4. The app calls scrollToRowAtIndexPath on the table view (cells have different heights for portrait/landscape mode, need to call scrollToRowAtIndexPath to the first cell before rotation so that the user can see the same cells after rotation)
  5. Close Safari View Controller
  6. scrollToRowAtIndexPath had 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?

asked 1 min ago

- - , .

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 12 اسفند 1394 ساعت: 6:58

صفحه بندی