Reputation: 79
I am doing one application in which i got one HTML string in background thread. I want to load the webview
using that HTML string in background.
If I load that web view on background, the app crashes. I don't want to load webview
using main thread because on that i don't want to disturb the main thread. And i did the R&D in internet i got one possibility using GCD.I think that one also involved in main thread. SO please let me know how to update the UI in background.
Upvotes: 0
Views: 471
Reputation: 119031
You can not. UI must always be updated from the main thread. Whatever your reason for not wanting to do it from the main thread, that reason is invalid.
Upvotes: 1