ios - Local notifications can't be canceled on the app termination -


guys! want ios app show notifications while been suspended, don't want after app killed. below code doesn't wark @ all, method called when app going closed.

- (void)applicationwillterminate:(uiapplication *)application {     // called when application terminate. save data if appropriate. see applicationdidenterbackground:.     [[uiapplication sharedapplication] cancelalllocalnotifications]; } 


Comments

Popular posts from this blog

visual studio - vb.net filter binding source by time -

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -