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

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -