I have a UITableView that reloads every 3 seconds I load it only when my Boolean variable is correct Ho. In some cases, that variable is always correct and it is difficult to scroll through the table at that time. (Performance is not very good) Second time its okay what should I do?
Note: I have coded my table according to the recommended method of apple (except for UITableView best practices). Apart from this, I want to draw UITableViewCell, instead of adding sub-views, on it.
What is the solution for this?
Are you sure because many of you are hard to scroll, how you want to refresh To refresh data from the network or to refresh the table, refer to your cell.
Every time you refresh your table view or when you scroll the table view, then the table view related cell, and now the whole performance depends on how fast you return the cell We do.
If you are doing custom UITableViewCell, then you are at risk of slow performance. Double check these things:
-
Do you reuse your cell properly? Check that [tableView dequeueReusableCellWithIdentifier:] will not always return zero or if it always returns to zero, then you do it incorrectly.
-
Check whether you block the main thread by loading images from the network or file, if it is, using multithread.
-
You check everything and still after getting slow performance, you either need to reduce the time a cell is returned (refreshing less) or Auto-pull the cell
Comments
Post a Comment