jjzjj

continueGameAction

全部标签

swift - Swift 2 中 registerUserNotificationSettings 的变化?

除了去年11月生成的文档(here),我似乎找不到任何关于registerUserNotificationSettings的文档,但我的旧代码似乎不再适用于Xcode7和Swift2。我在AppDelegate中有这段代码:letendGameAction=UIMutableUserNotificationAction()endGameAction.identifier="END_GAME"endGameAction.title="EndGame"endGameAction.activationMode=.BackgroundendGameAction.authenticationRe

swift - Swift 2 中 registerUserNotificationSettings 的变化?

除了去年11月生成的文档(here),我似乎找不到任何关于registerUserNotificationSettings的文档,但我的旧代码似乎不再适用于Xcode7和Swift2。我在AppDelegate中有这段代码:letendGameAction=UIMutableUserNotificationAction()endGameAction.identifier="END_GAME"endGameAction.title="EndGame"endGameAction.activationMode=.BackgroundendGameAction.authenticationRe