0

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

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

奇怪的导航控制器

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

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

到底是怎么回事 ?

4

1 回答 1

0

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

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

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

于 2013-09-30T08:16:42.787 回答