How 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.
For example:
application Did Become Active method can be used to prepare to run as the foreground app.
application Did Enter Background method can be used to execute some code when app is running in the background and may be suspended at any time.
application Will Enter Foreground method can be used to execute some code when your app is moving out of the background application Will Terminate method is called when your app is being terminated.
Submitted by:
For example:
application Did Become Active method can be used to prepare to run as the foreground app.
application Did Enter Background method can be used to execute some code when app is running in the background and may be suspended at any time.
application Will Enter Foreground method can be used to execute some code when your app is moving out of the background application Will Terminate method is called when your app is being terminated.
Submitted by:
Read Online IPhone Developer Job Interview Questions And Answers
Top IPhone Developer Questions
☺ | How app delegate is declared by Xcode project templates? |
☺ | What app specific objects store the apps content? |
☺ | Described about iPhone OS? |
☺ | Which object manage presentation of apps content on the screen? |
☺ | Define struct? |
Top Computer Programming Categories
☺ | Python Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | OOP Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |