开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜