Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
1 answer
280 views

Custom UIBarButtonItem not working with appearance

i have subClass from UIBarButtonItem, when set setBackgroundImage with appearance not working, but create subClass from UIButton set image worked!. my code: MyCustomBarButtonItem.appearance()....
Alex's user avatar
  • 23
0 votes
1 answer
338 views

Setting UIBarButtonItem appearance resulted in weird behaviour with back button

let attributes = [ NSAttributedString.Key.foregroundColor: UIColor.orange, NSAttributedString.Key.font: UIFont.systemFont(ofSize: 22) ] // set nav bar button ...
K.L's user avatar
  • 55
3 votes
3 answers
1k views

UIBarButtonItem setBackButtonTitlePositionAdjustment doesn't work

Updated I want to change offset between Arrow and Text in Back Button in Navigation Bar. It works just fine until I set UINavigationBar.appearance().standardAppearance = newAppearance Here is the ...
Paul T.'s user avatar
  • 5,028
0 votes
1 answer
345 views

How to remove title from UIBarButtonItem.appearance() on iOS 10.3

I want to personalize the Back Button of my app to have a consistent looking. So I'm setting a image as the Back Button of a Navigation Bar. The code bellow works fine on any iOS above iOS 10. So, I'...
Tassio Marques's user avatar
1 vote
1 answer
1k views

Bar Button Item Tint Color not working

As you can see in the attached image, the bar button has its tint color set to red, however it is displayed in black. I think this is due to the text color still being black? Is there a way to change ...
Hans's user avatar
  • 2,482
0 votes
1 answer
467 views

UIBarButtonItem bold non-standard font when selected/active

I want to setup UIBarButtonItem so that it uses a different font throughout my app. I'm doing this using appearance, however I have hit an issue with how to display the font in bold when its selected. ...
user avatar