开发者

Is there a way to open my application on a specific tab upon receiving a push notification?

开发者 https://www.devze.com 2023-01-20 23:09 出处:网络
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.

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

精彩评论

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