[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:] [UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:] xcode xcode

[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:]


Seems to me that your table view does not have any rows or sections in yet. Two possibilities come to my mind.

  1. Check your numberOfRowsInSection delegate and numberOfSectionsInTableView so that they are not set to 0.
  2. Its possible that the tableview has not yet finished loading the data.

Do share your findings, so I might be able to help out further if needed.


Make sure your table view is getting reloaded before scrolling. because after adding the data in the array, we need to reload the data to populate the TableView cell.


I got this problem when my tableView delegate and dataSource was mapped to another view controller. Make sure you haven't done the same.