The style of an iOS UIBarButtonItem that can be added to a UINavigationBar or a UIToolBar. Possible values are UIBarButtonItemStyleBordered, UIBarButtonItemStylePlain, or UIBarButtonItemStyleDone.
Questions tagged [uibarbuttonitemstyle]
46 questions
94
votes
8 answers
"Plain Style unsupported in a Navigation Item" warning with my customized Bar Button Item
I drag a Round Rect Button to the position of the right Bar Button Item, and set an image to the Round Rect Button. All works well, except the warning "Plain Style unsupported in a Navigation Item". Even if i select the style of the Bar Button Item…

lu yuan
- 7,207
- 9
- 44
- 78
38
votes
10 answers
Use UIBarButtonItem icon in UIButton
UIBarButtonItem has multiple icons available. Is it possible to use the icon which appears after setting its identifier to 'trash':
with an UIButton? There is no straighforward method to do that like setting the identifier or style.

ZviBar
- 9,758
- 6
- 25
- 30
16
votes
2 answers
UIBarButtonItem appearance setTitleTextAttributes does not affects UIControlStateDisabled state
Our designer asked me to use specific color for text of disabled UIBarButtonItems. That code I've used to implement this:
NSDictionary* textAttributes = [NSDictionary dictionaryWithObject: [UIColor blueColor]
…

lazarev
- 839
- 10
- 25
16
votes
1 answer
Unable to set a UIBarbutton back to the default tint color
If I change the tint of a UIBarbutton how can I reset it to it's default tint.
Here I am set a custom tint for a button...
examCancelButton.style = UIBarButtonSystemItemCancel;
examCancelButton.tintColor = myRedButtonTint;
Then later I need to set…

user278859
- 10,379
- 12
- 51
- 74
15
votes
2 answers
iOS 7: What is UIBarButtonItem's default font?
What is the default font of the title of a UIBarButtonItem with a style of UIBarButtonItemStyleDone?
The following just returns nil:
[doneBarButtonItem titleTextAttributesForState:UIControlStateNormal]

ma11hew28
- 121,420
- 116
- 450
- 651
7
votes
1 answer
UIBarButtonItemStyleDone does not create blue buttons in navigation bar when controller is pushed
I've searched around on several different forums and can't seem to find an answer for this. I have added a bar button item to a navigation controller and set its style to UIBarButtonItemStyleDone. When this is the first controller on the…

Cameron
- 71
- 1
- 2
6
votes
2 answers
UIBarButtonItemStyleDone background image using the iOS 5 appearance API
How can I provide a visually distinct bar button item background image for bar buttons with the UIBarButtonItemStyleDone style and the editing state of the Edit/Done button? None of the documented UIControlState values in the UIBarButtonItem…

Jukka Partanen
- 61
- 5
6
votes
0 answers
setTitleTextAttributes on UIBarButtonItem appearance proxy for different styles
I would like to style my UIBarButtonItems with a custom font. I am using the appearance proxy on UIBarButtonItem's titleTextAttributes to accomplish this successfully. However, I would like to set different font styles for different UIBarButtonItem…

Keller
- 17,051
- 8
- 55
- 72
5
votes
1 answer
Explain this margin logic for leftBarButtonItem, rightBarButtonItem, titleView
Can anyone explain to me where the margins you see in this screen shot below are coming from? I want the red, green and blue rectangles to all fit next to each other in both screen layouts, landscape and portrait. Instead I see inexplicable margins…

esilver
- 27,713
- 23
- 122
- 168
4
votes
1 answer
UIBarButtonItem with custom view but also having a UIBarButtonItemStyle
I am creating a UIBarButtonItem with a custom view in order to achieve a transition to a UIActivityIndicatorView as described here.
However I really want my button to retain a normal UIBarButtonItemStyle such as UIBarButtonitemStyleBordered.
Is…

adam
- 22,404
- 20
- 87
- 119
4
votes
1 answer
Apply border to UIBarButtonItem in ios7
I have seen UIBarButtonItem,UIButtons are borderless in ios7.But I want to have the appearance of UIBarButtonItem like in <=ios6.At the same time I cannot apply a particular backgroundimage because navigationbar tint colour changes from some set of…

Honey
- 2,840
- 11
- 37
- 71
4
votes
1 answer
How to color pick UIBarButtonItem tintColor
How do you color pick right RGBA values for UIBarButtonItem tint color so that when default effects are applied you get the results you were expecting?
My designer handed over to me correct RGBA values that I should apply as a tint color to my…

Ali
- 1,396
- 14
- 37
3
votes
4 answers
Customize UIBarbuttonitem with Background Images
I have added an instance of UIToolbar and buttons on top of it . Each button's belongs to the class of UIBarButtonItem.
My Requirement is that each button has a customized layout , i dont want to use the native button styles provided by Apple. So i…

Taimur Ajmal
- 2,778
- 6
- 39
- 57
3
votes
5 answers
How do I make a UIBarButtonItem 'glow'?
In the Maps app, when you press the tracking button in the lower left hand corner, it glows showing that it's pressed. This makes it behave like a radio button, and it will un-glow once you move the map. Is there a simple way to but a button into…

brianegge
- 29,240
- 13
- 74
- 99
3
votes
0 answers
Setting title attributes for UIBarButtonItemStyleDone using appearance proxy
I'm customizing my UIBarButtonItem buttons appearance using appearance proxy. While in the UIBarButtonItem class you can differentiate these buttons by button style ad you can customize all kinds of images, title position etc., you cannot customize…

Nava Carmon
- 4,523
- 3
- 40
- 74