The rightmost Bar Button Item in UIToolBar in objective-C
Questions tagged [rightbarbuttonitem]
112 questions
0
votes
1 answer
Bar button item image (UIImage) color changes with tint color?
I am trying to set an image for bar button item based on a condition. I need to show 2 different images. The tint color property is affecting the color of my image itself. How to change this? When i give “clear color” as tint color the image is not…

subin272
- 733
- 6
- 24
0
votes
0 answers
UIBarButton Item with Image Covers UINavigationBar Title
When I try to add a RIGHT bar button item with an image in it (either programatically or via the storyboard), it ends up centred and covers the title (see images below). Why is this?

Matt P
- 55
- 10
0
votes
1 answer
rightBarButtonItem disappears on pop in iOS-9 and iOS-10
I already read multiple posts regarding this, but couldn't get it working.
Posts I already read:
Custom rightBarButtonItem disappearing
RightBarButtonItem disappears when view appears again
I have a ViewController-A embedded in a…

PGDev
- 23,751
- 6
- 34
- 88
0
votes
2 answers
RightBarButton lowered in landscape-orientation in iOS 11
I have a problem with the RightBarButton within an iOS-App. Whenever the device is rotated to landscape, that button lowers as seen in the screenshot. While in portrait-orientation everything looks fine.
Any ideas?

Jerome Dreyer
- 144
- 10
0
votes
2 answers
Delegate method called for rightBarButtonItem of UIBarButtonItem
What is the delegate method called when rightBarButtonItem of UIBarButtonItem is tapped? I want to implement a specific action there.

Abhinav
- 37,684
- 43
- 191
- 309
0
votes
1 answer
rightBarButtonItem.enabled removes my custom layer from the uinavigationbar
I've customized my Custom UINavigationBar to show a custom image (actually I crossfade between lots of images on a NSTimer) :
- (void) displayImage:(EGOImageView*)anImageView {
CABasicAnimation *crossFade = [CABasicAnimation…

Tycho Pandelaar
- 7,367
- 8
- 44
- 70
0
votes
0 answers
Add rightBarButtonItems to NavBar in UISplitViewController (swift 3)
I am trying to set a custom BarButtonItem to my NavigationBar of my DetailsVC in my UISplitViewController with these two lines of code:
let barbuttonitem = UIBarButtonItem(title: "Hi", style: .plain, target: nil, action: nil)
…

O. Dudler
- 33
- 3
0
votes
1 answer
Adding Segment controller to place that already has one
I have menu button that is being put in the Navigation controller on every page in the rightBarButtonItem (customer wishes) from a my BaseViewController (all other classes inherit from this).
I want to add a segment controller next to the menu…

smcdrc
- 1,671
- 2
- 21
- 29
0
votes
1 answer
XLPagerTabStrip: How to add different bar buttons for different tabs using ButtonBarPagerTabStripViewController
I have three tabs, each tab is having different number of rightBarButtonItem and have different actions.
for eg. 1st tab has two right bar buttons Phone and Search, 2nd tab has three right bar buttons Add, Delete and edit, and 3rd tab has two right…

Appstute
- 1
- 6
0
votes
1 answer
Swift iOS -NavigationBar and RightBarButtonItem not Showing
I looked on SO for the answer to this and couldn't find it. Programmatic really isn't my thing but I intend on learning it around the beginning of July.
I'm using Storyboards. I have a NavVC that has a RedVC as root and the RedVC pushes on a…

Lance Samaria
- 17,576
- 18
- 108
- 256
0
votes
1 answer
how to trigger an event of navigationitem rightBarButtonItem programmatically?
i created an navigationitem rightBarButtonItem in the following code and I would like to trigger its event programmatically ( just like click the bar button ). search everywhere but can't find how to do it. does anyone know the method? thx a lot.
…

Alexander Huang
- 1,345
- 2
- 11
- 16
0
votes
2 answers
Custom UIToolbar within UINavigationController's rightBarButtonItem disappears when popping back to view
EDIT 2:
I have now fixed this issue. I was setting a custom background image for my UINavigationBar like so:
UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 44.0)];
[imgView setImage:[UIImage…

a1phanumeric
- 814
- 2
- 12
- 29
0
votes
1 answer
UINavigationController acting funny after pushViewController UPDATE 2
I'm having a weird problem, I have a slide menu in my app, for some unknown reason every time that I go from one view to another using the .pushViewController instruction the navigation controller acts funny and it resets my UIBarButtonItems. (They…

Octavio Rojas
- 187
- 13
0
votes
2 answers
RightBar Button on navigation bar is not giving click like look
I want to show image and the title on RightBar Button so i have written code as below:
UIBarButtonItem *negativeSpacer = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil] autorelease];
…

Uzair Dhada
- 333
- 2
- 6
- 23
0
votes
2 answers
Why button Widths are conflicts in UINavigationbar?
I have a button inside UINavigation
Bar Button Item
This is my expectation but really what happens is that button width getting depressed ,how to over come from this constant width ? any idea friends .

Kishore Kumar
- 4,265
- 3
- 26
- 47