How to handle and display asynchronous data returned in a background thread in the iOS UI -
i new using background threads display data in ios ui.
i using parse sdk of backend data management. seems of parse methods return data asynchronously ios version of sdk. if data not going returned immediately, in background thread, how implement data returned in ui?
for example,
i want show title in view in ios. text content of title stored in parse , retrieved via service run on background thread. how update title when data available return block?
insert code background code:
dispatch_async(dispatch_get_main_queue(), ^{ // update ui here //... }); you can update ui via main thread (or i've been told).
Comments
Post a Comment