0
如果我正确理解文档,如果出现推送通知弹出窗口,我应该发布UIApplicationWillResignActiveNotification。但它不会。应该iOS上的远程通知触发推送通知UIApplicationWillResignActiveNotification?
我已经加入:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(pauseGame)
name:UIApplicationWillResignActiveNotification
object:nil];
到
applicationDidFinishLaunching
我已经做到了。现在的问题是,当出现通知弹出窗口时,我需要暂停游戏。 – Zingam
对不起@Zingam,但这是一个不同的问题,我需要更多的信息来帮助你解决这个问题。 – agy