Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/43.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.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
Iphone Can';t设置UIBarButtonSystemItem的颜色_Iphone_Uibarbuttonitem_Uitoolbar - Fatal编程技术网

Iphone Can';t设置UIBarButtonSystemItem的颜色

Iphone Can';t设置UIBarButtonSystemItem的颜色,iphone,uibarbuttonitem,uitoolbar,Iphone,Uibarbuttonitem,Uitoolbar,我一直试图在我的工具栏中有一个UIBarButtonSystemItem,它总是默认为标准的蓝色。如果我用图像或标题创建它,它可以用正确的颜色正常工作,用UIBarButtonSystemItem尝试一下,它会变成默认颜色,而我在internet上找不到任何效果 代码如下: UIBarButtonItem *overlays = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemPageCurl t

我一直试图在我的工具栏中有一个UIBarButtonSystemItem,它总是默认为标准的蓝色。如果我用图像或标题创建它,它可以用正确的颜色正常工作,用UIBarButtonSystemItem尝试一下,它会变成默认颜色,而我在internet上找不到任何效果

代码如下:

UIBarButtonItem *overlays = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemPageCurl target:self action:@selector(overlays)];

必须创建我自己的按钮。initWithBarButtonSystemItem默认返回标准颜色似乎有点缺陷。很少有人要求苹果公司修复它,但到目前为止运气不佳。

不得不创建我自己的按钮。initWithBarButtonSystemItem默认返回标准颜色似乎有点缺陷。很少有人要求苹果公司修复它,但到目前为止运气不好。

我意识到这是旧的,但按钮的颜色取决于导航栏的颜色。您必须像以前一样创建自定义按钮。这很可能是Apple HIG的一笔交易。

我知道这是一笔古老的交易,但按钮的颜色取决于导航栏的颜色。您必须像以前一样创建自定义按钮。这很可能是Apple HIG的交易。

您所说的“默认颜色”是什么意思?您是否正在尝试更改颜色,如果是,如何更改?图标的标准灰色/蓝色。我想把颜色换成别的颜色。我可以在按钮或分段控件上使用自己的图像,但在系统中不起作用。你说的“默认颜色”是什么意思?您是否正在尝试更改颜色,如果是,如何更改?图标的标准灰色/蓝色。我想把颜色换成别的颜色。我可以在按钮或分段控件上使用我自己的图像来实现这一点,但它不适用于系统图像