maybe me find appropriate way handle :
- i have nstimer (started in appdelegate) fires class launch asynchronous server request (i use asiformdatarequest)
- when http json-response received, parse using touchjson
- then loop nsdictionary obtained fill dedicated nsmanagedobjectcontext
- then save context on user interactions
sometimes http request sent , user quit application. want time in order complete tasks 2 4 in background.
i read apple doc still not clear how gain time asynchronous action started ?
in short, how should use beginbackgroundtaskwithexpirationhandler ?
thanks usefull help.
kheraud
asihttprequest supports running requests in background:
[request setshouldcontinuewhenappentersbackground:yes];
if steps 2-4 inside delegate notifications , set above flag should want.
you won't able interact user once application has entered background though.
Comments
Post a Comment