[英]Show View on on top of Tab Bar
This is what I am able to do currently:这是我目前能够做的:
UIView Element With a Button on It带有按钮的 UIView 元素
This is what I want to do:这就是我想要做的:
Note: The second screenshot is taken from an App running on Android注意:第二个屏幕截图来自运行在 Android 上的应用程序
Edit: I did try using parentView.bringSubviewToFront(childView)
but there was no change编辑:我确实尝试使用
parentView.bringSubviewToFront(childView)
但没有任何变化
You might consider custom the UITabBar, here is an example:http://idevrecipes.com/2010/12/16/raised-center-tab-bar-button/您可能会考虑自定义 UITabBar,这是一个示例:http ://idevrecipes.com/2010/12/16/raised-center-tab-bar-button/
The problem you have now is putting the Button inside on of the viewControllers, which is under the tabBar.您现在遇到的问题是将 Button 放在 tabBar 下的 viewControllers 上。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.