Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios6 ios7强制半透明选项卡_Ios6_Ios7_Interface Builder_Uitabbar - Fatal编程技术网

Ios6 ios7强制半透明选项卡

Ios6 ios7强制半透明选项卡,ios6,ios7,interface-builder,uitabbar,Ios6,Ios7,Interface Builder,Uitabbar,3.5英寸ios7: 3.5英寸ios 6: 4“ios7: 我想要一个不透明的标签栏,我在任何地方都设置了它,我想: 在选项卡栏上: 在导航控制器上:-取消选中半透明按钮 在4“我没有半透明的强迫。我如何在3.5英寸ios7版本下逃脱 编辑: 方法不起作用 编辑2: 解决方案也不起作用 编辑3: 编辑4: 我认为这是ios中的一个bug,我不知道该从哪里挖掘,因为所做的更改如下所示: 3.5英寸ios 6.1-观察已移除的上部线条: 4“ios 7:-观察上部:完全黑色-背景图像

3.5英寸ios7:

3.5英寸ios 6:

4“ios7:

我想要一个不透明的标签栏,我在任何地方都设置了它,我想:

在选项卡栏上:

在导航控制器上:-取消选中半透明按钮

在4“我没有半透明的强迫。我如何在3.5英寸ios7版本下逃脱

编辑:

方法不起作用

编辑2:

解决方案也不起作用

编辑3:

编辑4: 我认为这是ios中的一个bug,我不知道该从哪里挖掘,因为所做的更改如下所示:

3.5英寸ios 6.1-观察已移除的上部线条:

4“ios 7:-观察上部:完全黑色-背景图像底部

3.5英寸ios 7仍然是一样的!怎么办(

在.plist中有一个“Nib文件基名称:MainVindow. 我在那里设置了TabBarController,并链接到AppDelegate。在
didFinishLaunchingWithOptions
我正在进行此设置。也许其他地方应该这样做

 if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")){
        [self.tabBarController.tabBar setClipsToBounds:YES];

        UIImage* tabBarBackground = [UIImage imageNamed:@"transparentImage.png"];
        [[UITabBar appearance] setShadowImage:tabBarBackground];
        [[UITabBar appearance] setBackgroundImage:tabBarBackground];

        UITabBar *tabBar = self.tabBarController.tabBar;
        tabBar.tintColor  = [UIColor yellowColor];
        tabBar.barStyle = UIBarStyleBlack;
    }


    self.window.rootViewController = self.tabBarController;
    [self.window makeKeyAndVisible];
  • 如果我将代码移动到:
    applicationIDBecomeActive

试着设置背景图像。这对我很有效

UITabBar *tabBar = [UITabBar appearance];
[tabBar setBackgroundImage:[UIImage imageNamed:@"tabbar-background"]];

在编辑时添加此选项对我不起作用:
UIImage*tabBarBackground=[UIImage name:@“transparentImage.png”];[[UITabBar外观]setShadowImage:tabBarBackground];[[UITabBar外观]setBackgroundImage:tabBarBackground];
不适用于3.5”ios 7,对于其他问题,我知道问题在哪里,我已经解决了,所以我想结束这个问题。这不是解决方案!!!