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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -