The rightmost Bar Button Item in UIToolBar in objective-C
Questions tagged [rightbarbuttonitem]
112 questions
0
votes
1 answer
Bar button items animating in UIKeyboardWillShowNotification
I can't figure it out what is wrong. I have 2 right buttons in the nav bar, and when the keyboard is On I want A & B buttons, and when the keyboard is Off, A and C, or maybe just C. I did this. Im using UIKeyboardWillShowNotification to check when…

Abdullah Alioski
- 33
- 6
0
votes
1 answer
How to add multiple bar buttons to navigation bar
Initially i have created a dynamic view called 'mainView'.In that,i have added Navigation bar.After that, i Want to add 2 right bar buttons to the navigation bar.If i code like this,its shows view with navigation bar.but its not showing right bar…

raghu
- 9
- 5
0
votes
1 answer
performSegue with programmatically added Navigation button
I am trying to customize a Navigation bar button item programmatically... I am just having some issues here which I am sure is an easy fix. I want to make it the default Add button for now, but also in the future will want to make the bar button…

user3708224
- 1,229
- 4
- 19
- 37
0
votes
2 answers
Bar button item not working
I have read the other posts here and trying all the things they say, but still is not working for me, I really need to add a right bar button item, I have tried in code (doesn't work for me) and I found something that might help me but, I don't know…

Pixele9
- 422
- 8
- 25
0
votes
1 answer
rightBarButtonItem seems to stack when moving from one viewController to another
My problem is that I have created a rightBarButtonItem for each view in my storyboard, the rightBarButtonItem in my app is supposed to keep track of the total cost of the items the user has added to their shopping list. In my viewDidLoad on the…

thailey01
- 165
- 1
- 14
0
votes
1 answer
segue from multiple bar button items
I have a view controller with 1 leftBarButtonItem and 2 rightBarButton Items.
I have implemented them using this code.
@IBOutlet weak var menuButtonLeft:UIBarButtonItem!
@IBOutlet weak var menuButtonRight: UIBarButtonItem!
var search =…

Swapna Lekshmanan
- 514
- 10
- 30
0
votes
2 answers
Move MKUserTrackingBarButtonItem to the right on Navigation Bar
is there a way to move MKUserTrackingBarButtonItem when it is attached to the navigationItem.rightBarButtonItem?
Right now it looks like this:
and I want it to look more like in the maps by Apple (edit: be closer to the edge):
Is there a way…

Markus
- 686
- 1
- 11
- 18
0
votes
2 answers
Adding BarButton in rightBarButtonItems
I have created 4 BarButtons with Image and when i added to navigation bar. It shows large gap in between the items and how can remove the gap between the image.

Arasuvel
- 2,971
- 1
- 25
- 40
0
votes
1 answer
Can't See Custom uibarbuttonitem at Right side of navigation bar
I am trying to add custom navigation bar button at right side of navigation bar.
here is my code.
UIButton *customPrintButton = [UIButton buttonWithType:UIButtonTypeCustom];
[customPrintButton setFrame:CGRectMake(0, 0, 100,…

Malav Soni
- 2,739
- 1
- 23
- 52
0
votes
1 answer
Can't set image to UINavigationBar's rightTabBarItem
I'm trying to set image to rightBarButtonItem.
I tried to do this 2 ways:
/* first way */
UIButton *button1 = [[UIButton alloc] init];
button1.frame=CGRectMake(0,0,105,30);
[button1 setBackgroundImage:[UIImage imageNamed: @"image.png"]…

skor33393
- 31
- 3
0
votes
1 answer
Touch event for right and left bar button items of navigationbar in ios7
I created left bar button item and array of 2 bar button items to the right bar button item. Here, the problem is, if I tap on area out of the left and right bar button items, the navigation occurs.How to remove this touch behaviour at the area out…

rani
- 593
- 3
- 10
- 28
0
votes
2 answers
How can I change 'JUST' the navigation right bar button image?
So right now, I have a right bar button in storyboard hooked up with a segue to another view controller. All the functions work fine here. (without code, all done through storyboard)
Now, I'm connecting to a webAPI call to see if the image needs to…

user3178926
- 339
- 1
- 5
- 15
0
votes
4 answers
Can not show the rightbar button - ios sdk
I had add image at my navigation bar and need to add the right bar refresh button.
But the right bar button can not show at the navigation after add.
Why?
Here the code add image at navigation bar:
[[UINavigationBar appearance]…

user831098
- 1,803
- 6
- 27
- 47
0
votes
0 answers
Right key invisible on a UItablewView... into Storyboard
If it was a problem of code, seems to need a clean!!!
I however have made all clean procedure, but the problem is there...
The problem: I have added a right button (Tab Bar button) to a top Bar.
The left (back) goes perfect, but I cannot view the…

Blasco73
- 2,980
- 2
- 24
- 30
0
votes
2 answers
How do I make the rightBarButtonItem STAY when a view controller is pushed on?
When I push a view onto my view controller
- (void)tableView:(UITableView *)tableView
didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
AnotherViewController *anotherViewController =
[[AnotherViewController alloc]…

bobobobo
- 64,917
- 62
- 258
- 363