Table View takes a lot of time to refresh after “reloadData()”

后端 未结 2 1598
终归单人心
终归单人心 2021-02-10 12:06

This is what Im trying to do: Get a xml from apple\'s RSS containing info about apps, parse it, and display the apps in an UITable view.

The problem is that after the \"

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-10 12:13

    I was also facing same problem. I solved this by running my code on UI thread as :

      NSOperationQueue.mainQueue().addOperationWithBlock(){
      //Perform action on main thread
        tableView.reloadData();
      }
    

提交回复
热议问题