swift - iOS: Remove gap between left uibarbuttonitems -


i had setup 2 uibarbuttonitem on left. below screen shot of wireframes of screen, captured debugging view hierarchy. red box default button , green box menu button.

from screenshot, there gap between button image , menu button. button's view occupying space. i'm trying figure out way these 2 button close each other.

i removed "back" text button:

let backitem = uibarbuttonitem() backitem.title = "" self.backbarbuttonitem = backitem 

and added menu button:

let btn = uibarbuttonitem() btn.customview = menu // it's uibutton self.leftitemssupplementbackbutton = true self.leftbarbuttonitem = menu 

enter image description here

if buttons view, reduce size of views frame , go.

if attribute of main bar button item give you, make custom 1 looks same , give appropriate size.

if using flexible space bar button item, use fixed space bar button item , set appropriately.

you can modify value of bar button view's location through insetinplace() use on frame, take experimenting on correct values used.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -