0

Possible Duplicate:
How to adjust UIToolBar left and right padding

As you see in the attached picture1, there is a bit of padding of some kind preventing the UIButton from going all the way to the right. How do I position the button all the way to the right so it's touching the right of the screen?

Community
  • 1
  • 1
Vinod Vishwanath
  • 5,821
  • 2
  • 26
  • 40
  • You can use the answer here: http://stackoverflow.com/a/7042201/772156 Basically, put a UIBarButtonItem with fixed space and set the width negative. – hukir Oct 18 '12 at 15:29
  • One of the other answers(the one by TonyMocha) on that thread helped me. Thanks a ton! – Vinod Vishwanath Oct 18 '12 at 15:48

1 Answers1

2

Use flexible Space Bar Button before the button in xib or Storyboard.

  • I tried this(see attached picture), but the toolbar has some padding that prevents elements from being positioned all the way left/right. @hukir's answer helped me, I was able to solve it programmatically. – Vinod Vishwanath Oct 18 '12 at 17:09