iOS UItableview scrollToRowAtIndexPath not working anymore

前端 未结 9 629
不知归路
不知归路 2020-12-30 01:14

This morning I just installed new Xcode which includes iOS 6.

I have a table view loaded with a plist file containing chapters and lines. Chapters define the section

9条回答
  •  情深已故
    2020-12-30 01:43

    One more possible workaround is to call layoutIfNeeded before calling scrollToRowAtIndexPath.

    [self.view layoutIfNeeded];
    [self.tableView scrollToRowAtIndexPath...];
    

提交回复
热议问题