Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/5.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
Ios 为什么我的UIBarButtonim按钮在某些设备上有背景色?_Ios_Uibarbuttonitem_Uiappearance - Fatal编程技术网

Ios 为什么我的UIBarButtonim按钮在某些设备上有背景色?

Ios 为什么我的UIBarButtonim按钮在某些设备上有背景色?,ios,uibarbuttonitem,uiappearance,Ios,Uibarbuttonitem,Uiappearance,在某些设备上,我的UIBarButtonItem按钮具有背景色。我不知道是什么原因造成的。以下是它在某些设备上的外观: 对于大多数设备和所有设备类型的模拟器,它应该并且确实是这样: 我确实对外观做了很多更改,但我不知道这些设置会如何导致此问题。以下是我的外观设置: func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -

在某些设备上,我的UIBarButtonItem按钮具有背景色。我不知道是什么原因造成的。以下是它在某些设备上的外观:

对于大多数设备和所有设备类型的模拟器,它应该并且确实是这样:

我确实对外观做了很多更改,但我不知道这些设置会如何导致此问题。以下是我的外观设置:

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

    UIApplication.sharedApplication().statusBarStyle = .LightContent
    UINavigationBar.appearance().barStyle = .Black

    UINavigationBar.appearance().barTintColor = UIColor.darkGrayColor()
    UINavigationBar.appearance().tintColor = UIColor.whiteColor()
    UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName: UIColor.whiteColor()]

    UIToolbar.appearance().barTintColor = UIColor.darkGrayColor()
    UIToolbar.appearance().tintColor = UIColor.whiteColor()

    UITableView.appearance().backgroundColor = UIColor.blueColor()
    UITableView.appearance().tableFooterView = UIView(frame: CGRectZero)
    UITableViewHeaderFooterView.appearance().tintColor = UIColor.blueColor()

    return true
}

在具有按钮背景的设备上,查看设置应用程序中的常规>辅助功能。有一个按钮形状开关。如果该开关处于打开状态,这就是这些设备上出现这种行为的原因


如果这就是原因,你真的对此无能为力,你也不应该对此做任何事情。如果用户想让界面看起来像这样,这取决于用户。这是一个内置选项。别担心,开心点。

你是如何设置“全球”的?它是在一个特定的框架还是什么?是iOS版本的问题吗?我个人喜欢这个功能。我不是一直开着它,但有时我打开它,只是为了改变一下。这就是我想它可能是的,类似的事情!但我问他们两人是否开启了任何特殊设置,他们说没有。哈哈,谢谢!如果你问我妈妈这个问题,她会说不。但相信我,她不知道自己打开了什么设置。不,我的想法是……)