All Questions
6 questions
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()....
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 ...
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 ...
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'...
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 ...
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. ...