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
2
votes
2 answers
bar Button Item text Will change when select in moonIcon like Font Awesome in swift 4
I used this code to using moonIcon Font like font Awesome in my app for UIBarButtonItem in navigationController
let menuButton = UIBarButtonItem(title: publicSVGAssets().menu, style: UIBarButtonItemStyle.plain, target: self, action:…

Saeed Rahmatolahi
- 1,317
- 2
- 27
- 60
2
votes
1 answer
How to change the badge background color in UIBarbutton?
I am using uibarbutton in my view to show the notification badge number. I have used following code to display.
barButtonBadge.badgeValue = @"5";
How can I change the background color of this badge number?
Right now it is taking default color.

Saktheeswaran M
- 21
- 1
2
votes
2 answers
Using built in bar button icons
In reading Apple's guide on BarButtonItems, I see that several bar button icons exist which are not choosable from the Attributes inspector in Xcode (in particular the large "chevron" which appears in 4 orientations.
I've searched for a way to…

Patrick Mahoney
- 23
- 7
2
votes
2 answers
How can I remove left UIBarButtonItem's background
I tried to remove the background of the left UIBarButtonItem's background.
My image is just the icon with the lines. But there is black background.
My code is:
paneViewController.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]…

Burak
- 5,706
- 20
- 70
- 110
2
votes
1 answer
Which is the tintColor of UIBarButtonItem with UIBarButtonItemStyleDone?
I would like to use a UISegmentedControl with two buttons as a replacement for a single 'Done' button. To achieve this, I need to know the tintColor of UIBarButtonItems with UIBarButtonItemStyleDone.
Cheers and thanks in advance
MrMage

MrMage
- 7,282
- 2
- 41
- 71
1
vote
1 answer
UIBarButtonItem Not shown
I have a modal view controller called "takeAction". I am trying to load a UIBarButtonItem in takeAction when the modal view controller is presented to the user. So that, the UIBarButtonItem is asynchronous to the content of the modal view…

Praveen
- 1,781
- 6
- 26
- 32
1
vote
1 answer
Iphone create uibarbutton without interface builder
i want creating uibarbutton without interface builder = (whit code)
and this button is style camera
please help me

Milad
- 29
- 1
- 3
1
vote
1 answer
Add back arrow in UIBarButtonItem
I have this code which creates a UIBarButtonItem:
UIBarButtonItem *backButton = [[UIBarButtonItem alloc]
initWithTitle: @"ToDo"
style: UIBarButtonItemStyleBordered
…

Peter Stuart
- 2,362
- 7
- 42
- 73
1
vote
2 answers
UIBarButtonItem style plain change font
Changing the
NSDictionary * barButtonAppearanceDict = @{UITextAttributeFont : font};
[[UIBarButtonItem appearance] setTitleTextAttributes:barButtonAppearanceDict forState:UIControlStateNormal];
Doesn't affect the UIBarButtonItem when using…

Peter Lapisu
- 19,915
- 16
- 123
- 179
1
vote
0 answers
Why is my MKUserTrackingBarButtonItem always using plain style on iPad?
I'm adding a MKUserTrackingBarButtonItem to a toolbar. This works fine on iPhone, but on iPad the button will only use the "plain" style. This makes it almost invisible on a black toolbar, so I want to use the bordered style. But even setting the…
user188041
1
vote
1 answer
How do you set the background image of a plain UIBarButtonItem?
If my UIBarButtonItem (lightButton) has a style of Bordered, either of the following lines change the background image:
[lightButton setBackgroundImage:resizeableImage forState:UIControlStateNormal style:UIBarButtonItemStyleBordered…

Curyous
- 8,716
- 15
- 58
- 83
1
vote
1 answer
unrecognized selector sent to instance UIBarButtonItem
I am trying to customize the navigation bar and it's buttons in my AppDelegate file :
// first I am customizing the done button
[[UIBarButtonItem appearance] setBackgroundImage:buttonDone forState:UIControlStateNormal…

Teo
- 3,394
- 11
- 43
- 73
0
votes
1 answer
UIBarButtonItem image/glyph in Standard UIButton
I'm trying to create a 'Refresh' button containing the standard UIBarButton refresh system glyph, which, when tapped, will animate a custom view, then fire another selector to call the intended refresh action.
I know I could do this with images and…

Echilon
- 10,064
- 33
- 131
- 217
0
votes
1 answer
Change a UIBarButtonItem's style to a BarButtonSystemItem
I'm new to iPhone development, so I'm not sure if it is a very common issue. I didn't find anything about this on Google.
I have a UIBarButtonItem defined with Interface Builder:
@property (weak, nonatomic) IBOutlet UIBarButtonItem…

ldiqual
- 15,015
- 6
- 52
- 90
0
votes
2 answers
Create a UIBarButtonSystemItem with UIBarButtonItemStyle
I want to create a system UIBarButton, but I want it to have plain style.
I've tried with this code, but the style is ignored.
What's wrong with it?
UIBarButtonItem *search = [[UIBarButtonItem alloc]…

pasine
- 11,311
- 10
- 49
- 81