Is there a way to open my application on a specific tab upon receiving a push notification?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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 { [controller setSelectedIndex:4]; }
Where controller is your UITabBar.
回答2:
Yes, there is.
Try setting the selectedIndex property of your UITabBarController.