【问题标题】:ios7 statusbar not behaving correctlyios7状态栏行为不正确
【发布时间】:2013-09-28 10:28:49
【问题描述】:

我正在为我的应用程序使用 UITabbar。每个选项卡内部都有一个导航控制器。

当我触摸标签栏中的标签时,会发生这种情况:

第一次状态栏是黑色的(ios7) 第二次状态栏显示信息(ios7)

但是,对于这两个示例,导航导航栏都不会在状态栏下方展开。

发生了什么事?

【问题讨论】:

    标签: ios7 statusbar


    【解决方案1】:

    通过从应用委托中删除它:

        UIImage *topbarImage = [UIImage imageNamed:@"topbar"];
        UIImage *topbarStrechable = [topbarImage stretchableImageWithLeftCapWidth:0 topCapHeight:0];
        [[UINavigationBar appearance] setBackgroundImage:topbarStrechable forBarMetrics:UIBarMetricsDefault];
        [[UINavigationBar appearance] setTintColor:[UIColor navigationBarColor]];
    

    一切都开始像魅力一样运作。 ;-)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-10-01
      • 2013-11-12
      • 2013-10-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-14
      相关资源
      最近更新 更多