Home:ALL Converter>Updating UI From a background thread on iOS

Updating UI From a background thread on iOS

Ask Time:2015-06-17T17:37:25         Author:0x6d6e

Json Formatter

On iOS, its well documented that the UI should never be updated from a background thread. Rather the main thread should be the sole interface to update the UI. My Question is why?

Is it because UIControls are not thread safe and hence there is always the possibility of main thread updating the particular control whilst its being tinkered with in a background thread? Is my understanding right?

Thanks

Author:0x6d6e,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/30887782/updating-ui-from-a-background-thread-on-ios
yy