How to respond to state transitions on your app?
Submitted by: AdministratorOn state transitions can be responded to state changes in an appropriate way by calling corresponding methods on app's delegate object.
Example:
applicationDidBecomeActive method can be used to prepare to run as the foreground app.
applicationDidEnterBackground method can be used to execute some code when app is running in the background and may be suspended at any time.
applicationWillEnterForeground method can be used to execute some code when your app is moving out of the background
applicationWillTerminate method is called when your app is being terminated.
Submitted by:
Example:
applicationDidBecomeActive method can be used to prepare to run as the foreground app.
applicationDidEnterBackground method can be used to execute some code when app is running in the background and may be suspended at any time.
applicationWillEnterForeground method can be used to execute some code when your app is moving out of the background
applicationWillTerminate method is called when your app is being terminated.
Submitted by:
Read Online Mobile Developer Job Interview Questions And Answers
Top Mobile Developer Questions
☺ | How to avoid an ANR? |
☺ | Described ANR? |
☺ | How an operating system improve battery life while running an app? |
☺ | What is Intent? |
☺ | How to respond to state transitions on your app? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |