0

I've customized my navigationBar UIBarButtons using appearance in ios 5. However it is also editing the appearance of the DONE bar button on top of my keyboard (look at the image below to understand the button I'm talking about). How can I access that button's class, so I can customize that button separately?

enter image description here

Thank you!!!

Year3000
  • 459
  • 2
  • 7
  • 15

2 Answers2

0

This could be proper answer for your question.

iMash
  • 1,178
  • 1
  • 12
  • 33
0

Use the appearance proxy's appearanceWhenContainedIn method, for example:

[[UIBarButtonItem appearanceWhenContainedIn:[MyViewController class], nil] 
    setBackgroundImage:clear 
    forState:UIControlStateNormal 
    barMetrics:UIBarMetricsDefault];

(this example sets the background image, but i'm sure you can apply that to your own customization).

For details: see http://developer.apple.com/library/ios/#documentation/uikit/reference/UIAppearance_Protocol/Reference/Reference.html

Rob van der Veer
  • 1,148
  • 1
  • 7
  • 20