开发者

Update UITableView data when returning from detailView

开发者 https://www.devze.com 2023-03-21 00:16 出处:网络
I update the UITableView\'s data source when viewDidAppear method is called on the ViewCon开发者_运维问答troller that holds the tableview. So every time the user returns from the detailView the data i

I update the UITableView's data source when viewDidAppear method is called on the ViewCon开发者_运维问答troller that holds the tableview. So every time the user returns from the detailView the data is updated.

So the issue is that the UI is interrupted and the cell is selected until it is finished.

Is NSOperationQueue the best way to correct this?

Thanks for some suggestions.


Personally I would do these kind of things using either blocks or an NSOperation. The important thing is that the UI doesn't get blocked at any time if you can help it.

0

精彩评论

暂无评论...
验证码 换一张
取 消