UIBarButtonSystemItem PageCurl不会随工具栏更改颜色 [英] UIBarButtonSystemItem PageCurl does not change color with the toolbar

查看:159
本文介绍了UIBarButtonSystemItem PageCurl不会随工具栏更改颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改导航栏和工具栏的颜色,但是页面curl系统图标 UIBarButtonSystemItemPageCurl 的颜色不会随工具栏颜色变化。如果我使用其他系统图标,如书签,他们会改变。有没有人有这种问题的解决方案?

I wanted to change the color of the navigation bar and tool bar, but the color of the page curl system icon UIBarButtonSystemItemPageCurl does not change with the tool bar tint color. If I use other system icons like bookmark, they will change. Does anyone have a solution for this sort of problem?

我使用以下行来更改导航栏和工具栏的颜色。

I used the following lines to change the color of the navigation bar and the tool bar.

    self.navigationController.navigationBar.tintColor = [UIColor redColor];
    self.navigationController.toolbar.tintColor = [UIColor redColor];

这里是一个屏幕截图,显示页面颜色不变:

Here is a screenshot showing that the Page Curl color does not change:

推荐答案

尝试在将 tintColor 设置为 UIBarButtonSystemItemPageCurl 这当然是一个问题,当我最后看着iOS 4.3。

Try setting the tintColor for UIBarButtonSystemItemPageCurl before adding it to the toolbar? This was certainly an issue when I last looked in iOS 4.3.

这篇关于UIBarButtonSystemItem PageCurl不会随工具栏更改颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆