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.
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
Post a Comment