Error: UITableView jump to top with UITableViewAutomaticDimension

前端 未结 7 1751
半阙折子戏
半阙折子戏 2020-12-05 15:17

I am using UITableView with estimatedRowHeight and UITableViewAutomaticDimension. Also I am using NSFetchedResultsControllerDele

7条回答
  •  余生分开走
    2020-12-05 15:23

    let cou : Int = self.Array.count as Int
    let lastindex : NSIndexPath = NSIndexPath(forRow: cou-1, inSection: 0)
    self.TableName.scrollToRowAtIndexPath(lastindex, atScrollPosition: UITableViewScrollPosition.None, animated: true)
    

    This code help you to scroll your tableview at particular position.

提交回复
热议问题