ios - Thread that work in background of project until the end of program -
i need write thread work in background of project.
when should create , , example in appdelegate or others?
if want run thread when user job,for example when click on button run thread work in background until end of program,for should do?
in ios, program never ends unless crashes or user turns phone off. running "until end of program" very, long time. users not thank emptying battery.
it asking far not best possible solution, , rejected if want put app app store. should explain trying achieve.
in case posted wrong question, answer "use gcd". if don't know gcd is, google , apple's documentation friend.
Comments
Post a Comment