uibarbuttonitem Questions

6

How to provide normal state and selected/highlighted state images to uibarbuttonitem in iOS 7? Is there any way to provide tint colour for both normal and selected/highlighted state of uibarbuttoni...
Hamm asked 11/10, 2013 at 14:36

4

Solved

Is it possible to drag a navigation bar button item to the navigation bar, use an image, and NOT have tint applied so that the original image appears as intended? Or is this only possible by adding...
Keaton asked 1/4, 2014 at 15:42

1

Hello StackOverflow community, I have a rather curious case of a customized back button on my navigation controller's navigation bar disappearing on interaction. Some additional information is that...
Engelhart asked 27/6, 2021 at 6:58

12

Solved

I've been looking around for this solution for a while but haven't got any. e.g one solution is self.navigationItem.setRightBarButtonItem(UIBarButtonItem(barButtonSystemItem: .Stop, target: sel...
Mcilwain asked 4/5, 2015 at 4:45

5

Solved

I am putting a label on a UIToolbar (per this tip: Adding a UILabel to a UIToolbar). But the toolbar has a button on the left side, and so flexible spaces throw the label off the center, which is ...
Polystyrene asked 24/3, 2010 at 20:26

8

Solved

I want to be able to set the font of my apps navigation bar back button without doing anything too crazy and without losing any other design characteristics of the button (i.e. I want to keep the a...
Business asked 14/5, 2013 at 5:6

8

I've been developing an iOS app and have been having issues with using an image as the left bar button item in the navigation bar. I have attempted this in the following ways: UIImage *backButton...
Litt asked 17/3, 2015 at 6:53

7

My app has quite a few buttons on each screen as well as a UIBarButtonItem back button and I have problems with people being able to multi click buttons. I need only 1 button to be clickable at a t...
Diatessaron asked 21/11, 2016 at 11:1

7

Solved

I was able to create a UIBarButton item that can go back programmatically using the following code: func backAction() -> Void { self.navigationController?.popViewControllerAnimated(true) } ...
Stoddart asked 15/12, 2015 at 1:0

7

Solved

I have a settings bar button item (set as left bar button item). I only want to display it if the user is logged in. I thought I could use the following for anonymous users navigationItem.leftBar...
Annals asked 11/1, 2015 at 12:47

1

When I open a sheet with textfield, and I focus on textfield, then keyboard appears and this message appears : 2021-02-06 22:29:35.817858+0100 OrientationEPS[4026:269878] [LayoutConstraints] Unabl...
Melanite asked 6/2, 2021 at 21:50

6

I can't find a way to set the font size of the title in a custom UIBarButtonItem. The only way I can think of getting around this is to set it as an image, which I would like to avoid. Any other su...
Conjecture asked 27/4, 2010 at 11:34

3

Solved

I want to know which UIBarButtonItem enumerated in self.toolbarItems is a button and which is flexible space item.
Incompetence asked 19/5, 2014 at 9:17

11

I have added a BarButton item to the left of the nav.bar through Interface Builder and in the code I want this only to show in my table view's edit mode. But I didn't find any hidden property to se...
Hydrotherapeutics asked 4/8, 2009 at 8:27

3

I have a bar button item set to a custom image from my image assets folder. After launch, once the user presses the button, I want it to change to a system item—the stop (X) button. I know how to p...
Chequered asked 18/7, 2016 at 16:39

21

Solved

How can I change the position of a UIBarButtonItem in a UINavigationBar? I would like my button to be about 5px higher than its normal position.
Nickel asked 23/4, 2011 at 0:3

4

Solved

I want put badge on UIBarButtonItem. for that I use the following reference Add badge alert in right bar button item in swift in this I create the 'UIBarButtonItem+Badge.swift' file and put that...
Gymno asked 16/11, 2018 at 9:48

6

Solved

I'm a beginner iPhone developer. How can I programmatically set the title for the UIBarButtonItem? My code is the following: self.navigationItem.rightBarButtonItems = UIBarButtonItem( barButto...
Tract asked 29/1, 2015 at 9:13

13

I am trying to display badge on my notification button, in app as displayed on AppIcon. So far whatever i have researched is related to Obj. C, but nothing that specifically discussed way to impl...
Interrupter asked 6/7, 2015 at 0:2

3

Is there a way to highlight (i.e., toggle) a UIBarButtonItem without using a custom view? For example, see 3D button from the Maps app: or Shuffle All from the Music app:
Southwestward asked 6/1, 2014 at 23:39

5

I have tried to put circle button on right navigation bar of iOS but unfortunately When I use button background it doesn't round the image it shows square shape background image but When I remove i...
Eous asked 2/3, 2016 at 10:1

8

In UITableView I configure self.navigationItem.leftBarButtonItem with a button. Now I want to reload this button to update text on this button, but it's on Navigation bar. I can update UITableView ...
Consonance asked 2/2, 2013 at 11:20

20

I have a view controller that is the detail view of a table. When you click on the row of the table it takes you to the detail view. The detail view is embedded in a navigation controller such that...
Bautzen asked 3/4, 2015 at 16:1

3

Solved

I have programatically created a toolbar to which I have added a UIBarButtonItem. This is what is currently looks like: I want the the button to have a border and a corner radius(curved corner...
Melanite asked 24/2, 2016 at 19:19

16

Solved

I have a UIBarButtonItem in my UIToolbar titled Done. Now I want to change the font from the default to "Trebuchet MS" with Bold. How can I do that?
Adagietto asked 13/1, 2012 at 11:32

© 2022 - 2025 — McMap. All rights reserved.