3

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:

Page Curl

AstroCB
  • 12,337
  • 20
  • 57
  • 73
Chris Ding
  • 61
  • 3

1 Answers1

2

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.

petert
  • 6,672
  • 3
  • 38
  • 46
  • UIBarButtonSystemItemPageCurl was added to the tool bar by UI Builder. – Chris Ding Jun 22 '12 at 15:33
  • OK. I removed UIBarButtonItem for the page curl icon, and added a new one programatically. The problem was solved! – Chris Ding Jun 22 '12 at 17:11
  • 1
    i tried this same solution out, and i don't get a redColor curlButton. Chris, do you have a code-snippet showing how this worked for you? – john.k.doe Jul 17 '12 at 19:54
  • It only works for the standard color and black color. It seems it changes with color of the toolbar style. self.navigationController.toolbar.barStyle = UIBarStyleBlack; – Chris Ding Nov 04 '12 at 01:53