问题
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