【问题标题】:Nativescript how to hide tabstrip bar at bottom of screenNativescript如何在屏幕底部隐藏标签栏
【发布时间】:2020-10-05 04:18:53
【问题描述】:

我想在其中一个屏幕中从屏幕底部隐藏导航栏。我厌倦了用css设置它

visibility:collapse;

以编程方式

 let tab: TabStrip = this.page.getViewById("btm-tab");
        tab.visibility = Visibility.collapse;
 //and tried this as well 
 //tab.viewController.tabBar.hidden = true;

但它适用于 android 但在 IOS 上它会在 bar 所在的那个地方显示空白。如何在 IOS 上折叠 tabstrip。我正在为 nativescript 使用角度。我已经完成了 stackoverflow 上提供的一些解决方案,但对我没有用。

【问题讨论】:

  • @FailsalAhmed 您是否尝试将高度明确设置为 0?

标签: ios nativescript nativescript-angular


【解决方案1】:

我认为问题不是“崩溃”,正确的行应该是

visibility: collapsed;

测试一下然后告诉我:)

【讨论】:

    猜你喜欢
    • 2019-01-19
    • 2021-08-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-01
    相关资源
    最近更新 更多