【问题标题】:How do you keep a UIButton on top (like a z-index) of a UITabBar您如何将 UIButton 保持在 UITabBar 的顶部(如 z-index)
【发布时间】:2015-02-15 08:44:31
【问题描述】:

我有一个 UITabBarControllerUITabBarItems 。我在上面添加了一个按钮,在您使用 bottomBarHide 方法之前它可以正常工作。然后该按钮出现在标签栏下方。

我该如何解决这个问题?

【问题讨论】:

  • 你能截图这个问题吗?

标签: ios uibutton uitabbarcontroller uitabbar uitabbaritem


【解决方案1】:

bringSubviewToFront 应该可以工作:

[parentView bringSubviewToFront:childView];

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-15
    • 1970-01-01
    相关资源
    最近更新 更多