-2

What would be possible issues having a UITableView load all of it's cells even though most are off screen?

The custom cells are using Auto-Layout as well as the entire screen that the table view is in.

This is happening in ios versions 8, 7, 6

ort11
  • 3,359
  • 4
  • 36
  • 69
  • Please try to explain more clearly. – Hot Licks Feb 12 '15 at 17:00
  • A UITableView reuses table view cells, so it won't create more than one offscreen cell for each identifier. – Dave Batton Feb 12 '15 at 17:23
  • 1
    Are you saying that your cells currently are loading if they're off the screen? Or are you saying you want them to? – AdamPro13 Feb 12 '15 at 17:43
  • Turns out that if you put a Table View under a Scroll View, this is what will happen. It will "call for" all cells in the Table View. So, need to take it out of the scroll view and do the UI somehow else. – ort11 Feb 12 '15 at 22:24
  • begs the question, why do you have a table view under a scroll view ? – CW0007007 Feb 26 '15 at 14:44

1 Answers1

0

Do not put table view under a scroll view and / or turn off the scrolling for the table view.

ort11
  • 3,359
  • 4
  • 36
  • 69