Questions tagged [uibuttonbaritem]

UIBarButtonItem is a button specialized for placement on a UIToolbar or UINavigationBar object. It is inherited fromits abstract superclass, UIBarItem of Apple's UIKit framework. It is available in iOS 2.0 and later.The issues related with UIBarButtonItem question can be tagged with [UIButtonBarItem].

A UIBarButtonItem is an abstract object representing a button or custom view on a UIToolbar and UINavigationItem. The UIBarButtonItem defines additional initialization methods and properties for use on toolbars and navigation bars.

From Apple official documentation:UIBarButtonItem class reference You typically use Interface Builder to create and configure bar button items

SO related Question for reference:

Related tags:

35 questions
1
vote
1 answer

UIBarButtonItem refresh animation is offset

This related SO question does display a similar issue to my own but the answer supplied does not fix my problems. I have a refresh button which I animate when it is tapped. It's a UIBarButtonItem, created in storyboard and the image I used to create…
Damo
  • 12,840
  • 3
  • 51
  • 62
1
vote
1 answer

strange behavior when changing UINavigationController backItem title

I'm changing the back button item title in the viewDidAppear of a controller in the following way: self.navigationController.navigationBar.backItem.title = @"Previous"; It changes the tittle properly, but the I'm having a strange behaviour. When I…
Rafael
  • 614
  • 2
  • 7
  • 13
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…
1
vote
1 answer

UINavigationBar - Change Height / Add Big Button

I need to change the height of my Navigation Bar and add a custom Image button to the top left corner. I am part way there, but lost now on getting the custom Image button in the right position. Here is what I have: To adjust the height I have…
mday
  • 427
  • 1
  • 7
  • 22
1
vote
2 answers

Home button in drill down app

I am writing an iOS app that has a 3-4 level of drill down. In the 2nd, 3rd... and so on views, I want to add a home button on the nab bar, which once pressed takes you back to the root view controller, i.e. the first screen. I have added a button…
user1534235
  • 161
  • 3
  • 16
1
vote
1 answer

add a UIToolbar as a UINavigationItem error

I have a UIToolbar that sits at the bottom of the view. When the user is on an iPad, I want to add the toolbar to the right side of the navigation controller, because there will be room. I added this code: - (void)viewDidLoad{ if…
0
votes
1 answer

iOS UIBarButtonItem action falls through to button behind it

I am creating a custom UIView to act as a "pop up" window with a toolbar. The action for each UIBarButtonItem in the toolbar is triggered as expected on iPhone simulator but is not triggered on iPad or iPad simulator. Instead, the action for the…
galactikuh
  • 765
  • 8
  • 18
0
votes
3 answers

Nav BarItem Returning To Previous View

In the below figure, I have a "Back" button in the nav bar which I would want for it to close the Barcode Scanner tab and bring me to to the view I was prior to hitting the "Back button. How would that be possible?
habed
  • 201
  • 4
  • 12
0
votes
3 answers

Back button on navigation bar

How do I achieve this kind of button? Can I do using navigation bar ?
rishu1992
  • 1,414
  • 3
  • 14
  • 33
0
votes
1 answer

UIBarButtonItem Action created in another class not firing (swift)

Ok so Im creating a UIPickerView programmatically to trigger from a UITextField inside a TableCell(this may be a stupid idea but lets go with it for now anyway). I refactored all the code for it into its own class to declutter my…
0
votes
1 answer

Align UItextFields one below the other in interface builder

How to align 2 textfields one below the other in a tool bar and display a button on the left side (or right side) in the vertical middle of those two fields? Please see the image to know what I am talking about.…
Dave
  • 4,038
  • 9
  • 45
  • 57
0
votes
1 answer

how to add three button bar item to xib file

I want to add three buttonbarItem in my navigationbarItem in xib file. I don't want add these buttons with code (programmatically). I want add these buttons with outlet & action (on xib file) but I can't!!! I can only add two button right & left…
user3599133
  • 155
  • 3
  • 17
0
votes
2 answers

UIBarButtomItem image highlighted

I'm trying to setup a different image (highlighted) when the user press the UIBarButtomItem with this code: self.addButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"addButton"] …
vbarba
  • 21
  • 1
0
votes
1 answer

Addition of UIButtonTypeDetailDisclosure to toolbarItems causing runtime error

I am trying to add a UIButtonTypeDetailDisclosure to the bottom bar of my view. The app is building successfully but at runtime I'm getting error below: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIButton…
Armand
  • 435
  • 1
  • 11
  • 23
0
votes
1 answer

minic iOS 7 UIBarButton font for UIBarButtonSystemItemAdd and others

I would like to generate a button or label with the same visual plus sign or icons as used in the UIButtonBar system items. Is there a way to determine what font and characters are being used to generate these items?
madmik3
  • 6,975
  • 3
  • 38
  • 60