How we can execute some code when app is in background?
Answer / Vijay Kumar Pathak
In iOS, you can make use of App Delegate methods to handle events when the app is in the background. The primary methods are applicationDidEnterBackground: and applicationWillEnterForeground:.nnYou can move your code into these methods to execute tasks while the app is in the background.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you setup/initialise a core data stack in your application?
What is suspended state in ios?
Give example scenarios when an application goes into inactive state?
How to register as a iphone developer?
Difference between categories and extensions?
what is singleton class? Why the whole application creates a single instance?
What are selectors in objective-c?
How we can wait for some thread to finish before starting another?
What is a struct in iOS operating system?
What is the use of controller object UIApplication?
what is protocol? . The use of protocol?
what is Xcode?