简体   繁体   English

在标签栏顶部显示视图

[英]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 元素

带有按钮的 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.

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