JVS
JVS

Reputation: 2682

Title position of UIBarButton

I want to set my UIBarButtonItem.title underneath the UIBarButton image.

enter image description here

I tried using :

myBarButton.setTitlePositionAdjustment(UIOffset(horizontal: 5,vertical: -5), for: UIBarMetrics.default)

the text doesn't show though. Any ideas? It is not possible for me to integrate UITabBar just in case this is your answer.

Upvotes: 0

Views: 89

Answers (1)

Bijender Singh Shekhawat
Bijender Singh Shekhawat

Reputation: 4474

You can adjust your button's title and image with "Size Inspector". Size inspector found in "utilities area".

enter image description here

Upvotes: 1

Related Questions