Is there a way to open my application on a specific tab upon receiving a push notification?
Is there a way to open my applicatio开发者_运维知识库n on a specific tab upon receiving a push notification?
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.
Yes, there is.
Try setting the selectedIndex property of your UITabBarController.
精彩评论