I have a tabular view with one section. I pull data from the Internet in small chunks asynchronously in the background. I have a problem, I do not know how many records will be in total. When the web service stops returning data, I know that I have all of them, in some cases the lines can be infinite.
Method:
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
for obvious reasons, it is called once at the beginning of the download, at the moment I do not know how big my section will be. Any ideas on how best to approach this issue? Can I set the partition size anywhere after calling this method?
source share