I as wondering how expensive reloadData on tableView is. I wanted to refresh the tableview every 5 seconds. Is that going to cause any performance issues?
Reload data will call the two main methods on your table view data source, numberOfRowsInSection
and then iterate over cellForRow:atIndexPath:
for the visible cells required, depending on your tableView's contentOffset
If your app scrolls nicely already then the only performance hit your app will endure is if you're doing a lot of work in numberOfRowsInSection
(like hitting the network or something time consuming).
Edit: As noted, heightForRow:atIndexPath:
can also be a pain point if you're using it to do complex calculations for different height cells.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With