How can a user respond or react to the state transitions on the app?

devquora
devquora

Posted On: Feb 22, 2018

 

A user can state changes in the most apt way in order to respond to the state transitions. Calling the corresponding methods or functions on the app’s delegate object is one way of doing this.

For instance:

  • The method applicationDidBecomeActive( ) can be employed to arrange the app to run as the fore app.
  • The method applicationDidEnterBackground( ) can be employed for the execution of some code during the background runtime of the app and the exercise may be put on hold at any time.
  • The method applicationWillEnterForeground( ) can be employed when the app is moving into the foreground and shifting out of background and some code needs to be executed.
  • The method applicationWillTerminate( ) is called to action when the app is nearing termination.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    IOS Interview Questions

     What is the method for preventing the QuickTime Player from capturing streaming videos of iOS 8 apps on Yosemite while screen recording is on?

    The QuickTime Player on Yosemite cannot record encrypted media by the HTTP Live Streams during screen recording. As a r..

    IOS Interview Questions

    What are extra features added in iOS 9?

    Learning user habits and most importantly, acting on the information gathered has never been easier! With the excellent ..

    IOS Interview Questions

    How is retain different from assign?

    Assign is the default in terms of Objective C, and thus should be used for attributes that are not pointers; whereas re..