I have a tableview that displays some prices from the net. Sometimes some prices have value “noPrice”.
If i detect that price in cellForRowAtIndexPath, i return cell with no text. That takes space so the table has prices and then some spaces, prices again, spaces, etc.
What do i have to return in cellForRowAtIndexPath so the cell with no prices won’t display and there will be no empty space?
I believe you should “clean up” the array before reloading the tableView data. I.e.: you receive the data from the net, you remove all “empty” values from the array, then you set the array property for the tableView and call reloadData.