2

enter image description here

I have a navigation bar with 3 bar button items. But i wonder why i have a huge space between first two icons ? And why default share icon less then my custom icons. My custom icons have size 29x29.

enter image description here

Arti
  • 7,356
  • 12
  • 57
  • 122
  • look at the view debugger. You will find the reason. – Teja Nandamuri Jan 26 '16 at 16:07
  • 1
    pls read the documentation regarding the icons and image sizes https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html#//apple_ref/doc/uid/TP40006556-CH27-SW1 – Teja Nandamuri Jan 26 '16 at 16:08
  • look at the view debugger while u run the app. Dont look at the debug console. Look at view debugger. – Teja Nandamuri Jan 26 '16 at 16:16
  • Possible duplicate of [How to adjust space between two UIBarButtonItem in rightBarButtonItems](http://stackoverflow.com/questions/22741824/how-to-adjust-space-between-two-uibarbuttonitem-in-rightbarbuttonitems) – Teja Nandamuri Jan 26 '16 at 16:30
  • @Arti, let me know if updated answer works. – Unis Barakat Jan 26 '16 at 17:18

1 Answers1

5

Update: for navigation bar, you simply need to place all three items in one of the two (Left Bar Button Items) or the (Right Bar Button Items) as follows:

enter image description here

and it should look like this:

enter image description here

As for tool bar items:

What you need to do is put a flexible space bar button between your buttons like so:

enter image description here

then it will look like this:

enter image description here

Unis Barakat
  • 876
  • 1
  • 8
  • 23