iosuitableview

Why tableview.visibleCells is empty?


How can it happens that an obviously visible and full width content tableview has no visible cell? Why is tableview.visibleCells empty?


Solution

  • My best guess would be to say that you are calling this method before the tableview had a chance to populate itself.

    Make sure you've call that after the delegate method are called and after the tableview is on screen.

    For a more accurate answer we will need to have more details about your problem.