[英]IOS: How to make a tab bar on the left on iPad
I've seen many apps creating a side bar on the left like the image above. 我见过许多应用程序在左侧创建一个侧栏,如上图所示。 Apparently this is not a split view controller since the size is fix for that.
显然,这不是一个拆分视图控制器,因为大小是固定的。
Anyone know how to do it? 谁知道怎么做? May I get some directions or advice on this?
我可以就此得到一些指示或建议吗?
That can be done simply by adding to your main view a UIView
with a "vertical" frame, eg (0, 0, 44, screenHeight). 这可以通过向主视图添加具有“垂直”框架的
UIView
来完成,例如(0,0,44,screenHeight)。 That view should be then populated with all the icons you need... 那个视图应该填充你需要的所有图标......
There is nothing more to it, as far as I can see. 就我所见,它没有更多的东西。
You can't use the default UITabBarController from iOS. 您不能使用iOS中的默认UITabBarController。 You will need to do your custom tab bar.
您需要执行自定义标签栏。 You could use an UIView with some UIButtons added as subviews.
您可以使用UIView并将一些UIButtons添加为子视图。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.