ios - Perform action when opening app for the second time -


when open app fires events viewdidload , viewdidappear form view controller when close , run again not call of them.

any idea?

you need read on application states. here link found online outlining different states:

http://www.techrepublic.com/blog/software-engineer/understand-the-states-and-transitions-of-an-ios-app/

what want notified when app becomes active.

probably easiest way implement function applicationdidbecomeactive() in app delegate. called when app becomes active foreground app either on launch, or when returns foreground active app.

note if want notification sent object other app delegate can listen uiapplicationdidbecomeactive notification.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -