Featured post
iphone - Can I cancel the method "applicationDidEnterBackground? -
i wanted cancel method, request confirmation user when presses button "home" on iphone go execution in background.
if user accepts, enters execution in background, if not accept, not anything.
i looked in forum, in documentation apple , found nothing.
could me?
thanks in advance!
no can't override this. event fire give time clean before move background.
your delegate’s applicationdidenterbackground: method has approximately 5 seconds finish tasks , return. in practice, method should return possible. if method not return before time runs out, application terminated , purged memory. if still need more time perform tasks, call beginbackgroundtaskwithexpirationhandler: method request background execution time , start long-running tasks in secondary thread. regardless of whether start background tasks, applicationdidenterbackground: method must still exit within 5 seconds
- Get link
- X
- Other Apps
Comments
Post a Comment