I want to set my UIBarButtonItem.title
underneath the UIBarButton
image.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.