简体   繁体   English

没有UIViewController的UITabBar按钮

[英]UITabBar button without a UIViewController

Was wondering if any of you tried to add a UITabBarItem to UITabBar that functions as a button that opens safari Externally. 想知道您是否有人尝试向UITabBar添加一个UITabBarItem,它充当一个从外部打开Safari的按钮。 Meaning it would not be a real tab, but just used as a button. 这意味着它不是真正的选项卡,而只是用作按钮。 Does Apple reject apps for using the UITabBarItem like so? 苹果是否拒绝像这样使用UITabBarItem的应用程序?

Thanks in advance. 提前致谢。

Try setting a view controller for that tab and then in the viewDidLoad viewDidAppear method add in your URL Scheme to load up safari or whatever app you need to open. 尝试为该选项卡设置一个视图控制器,然后在 viewDidLoad viewDidAppear方法中添加URL方案以加载safari或需要打开的任何应用程序。

I see no reason why Apple would reject it. 我认为苹果没有理由拒绝它。 All the tab bar really is, is just a UI preference. 选项卡栏实际上只是一个UI首选项。

Apple不拒绝从外部打开Safari的tabBar按钮。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM