iphone - How to set UIBarButton size in iOS 11 to match size in iOS 10 -


i have view controller simple uinavigationbar rightbarbuttonitem contains button view image asset.

in ios 10, uibarbuttonitem sized properly, not filling entire height , of navigation bar , therefore taking enough width stay proportional height. similar how uibarbutton items in apple's app throughout ios.

now in ios 11, these icons massive , take way more space used in ios 10.

is there way restore them how looked on ios 10? tried adding constraints customview property of uibarbuttonitems no avail.

your approach correct: custom bar button items autolayout, must add constraints set size. much-requested feature, don't worry, happy!

the constraints must add constraints table cell height: must add sufficient constraints size bar button item's custom view completely inside out. example, give absolute width , height constraints, or give contents width , height constraints plus constraints pinning them boundaries of custom view itself.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -