How we can execute some code when app is in background?



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

Post New Answer

More Apple iOS Interview Questions

How do you setup/initialise a core data stack in your application?

1 Answers  


What is suspended state in ios?

1 Answers  


Give example scenarios when an application goes into inactive state?

1 Answers  


How to register as a iphone developer?

1 Answers  


Difference between categories and extensions?

1 Answers  


what is singleton class? Why the whole application creates a single instance?

1 Answers  


What are selectors in objective-c?

1 Answers  


How we can wait for some thread to finish before starting another?

1 Answers  


What is a struct in iOS operating system?

1 Answers   B-Ways TecnoSoft,


What is the use of controller object UIApplication?

1 Answers  


what is protocol? . The use of protocol?

1 Answers  


what is Xcode?

1 Answers  


Categories