multithreading - Background update issue on iOS app -


i'm trying make "auto-update" process make user stay updated every x minutes while app's awake. i'm doing it's background call every x minutes asks server if there updates make or not.

the thing when make call , server returns yes, i've got to update 2 things: local db , user interface (cause there might changes on interface too).

what i've got thread problem. if don't make drawing while app's updating i've got no issue, when app crashes.

any ideas how control threading issue?

i'm assuming using coredata database. need make sure updates make managed object context occur on thread on context created (typically main thread).

you need make sure updates make user interface occur on main thread.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -