ios - how to i change the vertical position and size of bar button Item in may navigation controller? -


i working on project, have navigation bar of height 129 need add bar button item navigation bar. problem bar button position want change position of bar button item.

this image of happening: enter image description here

this shows position want it: enter image description here

very specific situation can try set image insets bar button item.

 let image = uiimage(named: "yourimage")       let leftbutton = uibarbuttonitem(image: image, style: .plain, target: self, action: #selector(self.leftbuttondidpressed))  leftbutton.imageinsets = uiedgeinsets(top: -64, left: 0, bottom: 0, right: 64)  self.navigationitem.leftbarbuttonitem = leftbutton 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -