user811598
user811598

Reputation: 79

How to update the UI in background thread without using mainthread

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

Answers (2)

Durgaprasad
Durgaprasad

Reputation: 1951

No. You cant update UI in other thread then main.

Upvotes: 0

Wain
Wain

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

Related Questions