didReceiveRemoteNotification - 在当前视图控制器中调用函数
当我收到推送通知时,如何触发当前视图控制器(当前用户查看)的功能。
提前致谢..
How can i fire a function of a current view controller(currently user viewing) when i receiving a push notification.
thanks in advance..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最好的方法是,在应用程序委托的方法中处理删除通知,使用 NSNotificationCenter 发送通知,
然后使用 NSNotificationCenter 添加任何感兴趣的 UIViewController 作为“remoteNotification”名称的观察者。
The best method is to, in your app delegate's method to handle the remove notification, send out a notification using NSNotificationCenter
Then use the NSNotificationCenter to add any interested UIViewController's as an observer for the "remoteNotification" name.