[英]iOS How to implement Tab Bar View Controller with no tab bar item selected?
I have gone through almost all question related to this on Stack Overflow 我在Stack Overflow上经历了与此相关的几乎所有问题
What I what to do is to show TabBarViewController as in the image. 我要做的是在图像中显示TabBarViewController。
Is there any way to achieve this in my tab bar view controller app? 有没有办法在我的标签栏视图控制器应用程序中实现这一点?
NO, there needs to be at least one Tab selected. 不,需要选择至少一个选项卡。 By default the Tab bar will select the first view controller object. 默认情况下,Tab栏将选择第一个视图控制器对象。
if you want to use Tabbar more flexible, you can use a customView instead of TabBarViewController's tabor, just like: 如果你想更灵活地使用Tabbar,你可以使用customView而不是TabBarViewController的tabor,就像:
UIView *customTabBar = [[UIView alloc] init];
customTabBar.frame = self.tabBar.bounds;
[self.tabBar addSubview:customTabBar];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.