When I'm dynamically changing a title of UIBarButton ellipsis shortly during changing:
I've tried to change frame of rightBarButton (make it wider), but it was not helpful. Any suggestions? Thanks
Set the button's possibleTitles
property to the set of possible titles when you setup the bar button item.
let btnDoneSave = ...
// Other setup
btnDoneSave.possibleTitles = [ "Done", "Save" ]
There should also be a place in Interface Builder for filling in the possible titles if you are creating the bar button item there.
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.