UIBarButtonSystemItem PageCurl does not change color with the toolbar

血红的双手。 提交于 2019-12-23 16:56:43

问题


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:


回答1:


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.



来源:https://stackoverflow.com/questions/11123883/uibarbuttonsystemitem-pagecurl-does-not-change-color-with-the-toolbar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!