有没有办法在收到推送通知后在特定选项卡上打开我的应用程序? [英] Is there a way to open my application on a specific tab upon receiving a push notification?
本文介绍了有没有办法在收到推送通知后在特定选项卡上打开我的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在收到推送通知后在特定选项卡上打开我的应用程序?
Is there a way to open my application on a specific tab upon receiving a push notification?
推荐答案
在 Google 上搜索推送通知教程,您会发现一些非常好的链接.研究示例并查看代码.
Do a search for Push Notification tutorial on Google, you'll find a few really good links. Study the examples and review the code.
然后创建一个类似这样的方法:
Then create a method something like this:
-(void)goToNewsTab{[控制器 setSelectedIndex:4];}
-(void)goToNewsTab { [controller setSelectedIndex:4]; }
控制器是你的 UITabBar.
Where controller is your UITabBar.
这篇关于有没有办法在收到推送通知后在特定选项卡上打开我的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文