The rightmost Bar Button Item in UIToolBar in objective-C
Questions tagged [rightbarbuttonitem]
112 questions
2
votes
1 answer
custom right bar button item in ios6 is not transparent
i am creating a custom right bar button item for my navbar using the following code :
// create a toolbar
UIToolbar* tools = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, 50, 44.01)];
// create the array to hold the button, which then gets…

user1130254
- 155
- 2
- 9
2
votes
1 answer
How to pass rightBarButtonItem to all ViewControllers in TabBarController?
I've build an app with around 12 view. In the top right of the NavigationBar there should be UIBarButton which has the exact same functionality for the whole app. It shows a custom button with a badge on it.
I pass the rightBarButtonItem down…

rockstarberlin
- 1,853
- 1
- 18
- 31
2
votes
0 answers
Bar button not receiving touch
I have 2 bar buttons on the tool bar , one is not working and the other is working. Some times when we touch the tip of the first bar button it will work, I think this has to be a problem with flexible space between them.
I couldn't find any…

Mary Zareah
- 43
- 1
- 6
1
vote
1 answer
Add rightBarButtonItem on second place Swift
I want to add rightBarButtonItem directly to the position of second place because I already have slider menu button on the right side of navigation bar(which is placed by third party framework and I don't have control over it). The following is the…

Priyanka
- 207
- 2
- 10
1
vote
1 answer
problem with adding right bar button to the navbar
HI Everyone,
I have a navigation bar with a navigation controller. In one of my views, I want to add a custom right bar button item. I am trying to do so with the following code, but its not happening ! Can anyone kindly help me out…

Ahsan
- 2,964
- 11
- 53
- 96
1
vote
2 answers
Check if rightBarButtonItem exists or not
Is there a way to check if the current view already has a right bar button, something like:
if (FOO_CODE.rightBarButtonItem != nil) {
// don't create one
} else {
// create one
}

Lauren Quantrell
- 2,647
- 6
- 36
- 49
1
vote
1 answer
In UINavigationController, I have to use two rightBarButtonItem with Image in swift
In my Application, i have to use two rightBarButtonItem in UINavigationController with image in swift 3.0, I'm posting the Image below,
In the given image, i'm very worried about Create Account and Login rightBarbuttonItem's image, how do i add…

Abhishek Mitra
- 3,335
- 4
- 25
- 46
1
vote
1 answer
Swift UNavigationItem button display menu labels
I'm new in Swift and I would like to how to do this.
When I touch rightBarButtonItem button I would like the following to appear:
The Test and Test2 text should display in the same view controller.
If I don't touch rightBarButtonItem the Test and…

Jeff
- 119
- 1
- 1
- 10
1
vote
3 answers
Replace UIBarButtonItem with UIActivityIndicatorView not working
I want to replace refresh button with activity indicator when the user press the refresh button and after the tableview is refreshed, i want to change it back to refresh button. But when I press the refresh button, it didn't change to activity…

moon
- 1,392
- 3
- 15
- 29
1
vote
1 answer
Move to another Viewcontroller via RightBarButtonItem
I have the following situation:
I have created a rightBarButtonItem in my viewDidLoad:
self.navigationItem.rightBarButtonItem = UIBarButtonItem.init(title: "New", style: .Plain, target: self, action: "newProject")
My question is, how can I move…

Walker
- 39
- 5
1
vote
2 answers
Possible to combine navigation right bar button in storyboard with coded one?
Hi I have a right navigation bar button item I created in storyboard. I would now like to add a second right button as in Apple's calendar app. The pure code version would be:
navigationItem.rightBarButtonItems = [rightA, rightB]
However, I have…

user1904273
- 4,562
- 11
- 45
- 96
1
vote
1 answer
UISegmentedControl, rightBarButtonItem and rotation issues
I'm trying to recreate (to some extent) the up and down arrows presented on Mail.app on iOS 7 and iOS 8. There's not much to it. I just insert a UISegmentedControl into a UIBarButtonItem, like this (if you do know a better way of replicating that…

Aloha Silver
- 1,394
- 17
- 35
1
vote
1 answer
UILabel as subview of UIBarButtonItem.customView not dimming when presenting view controller
I have an issue where UILabel in the navigation bar is not being tinted properly when a view controller is presented modally.
The UILabel is in the navigation bar, as a child view of a UIButton, which is a child view of the UIBarButtonItem, which is…

Jared
- 31
- 1
- 6
1
vote
2 answers
How to add Navigation Bar "Plus" button, and use it in code
I have a table view in a Navigation Controller, with a Navigation Bar at the top. I would like to add a plus button on the right of this navigation bar, and for the button to post an NSLog when pressed. However, all online resources suggesting to…

Isaac A
- 361
- 2
- 24
1
vote
2 answers
Right bar button item not aligned vertically
I am setting a rightbarbuttonitem in from a viewController using the following code:
UIBarButtonItem *item = [[UIBarButtonItem alloc]initWithTitle:@"Save" style:UIBarButtonItemStylePlain target:self…

ZeMoon
- 20,054
- 5
- 57
- 98