I have a UITableView inside of a scrollview. I load the datasource from internet content in the background, then call “reloadData”. But, it loads EVERY cell. As far as I know, it is supposed to load the cells as they appear onscreen. What is going on?
Share
I guess it happens because a
UIScrollViewitself does not take care of figuring out which subviews to be shown or not, thats up to a subclass or a delegate.From: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIScrollView_Class/Reference/UIScrollView.html
And if you add a table view inside a scroll view I think the table view will load as many cells as needed to draw its bounds without knowing which parts of it that really is on the screen.