0

I have 4 buttons in my navigation bar, but apparently the right one is too close to the side and the popover is not displaying correctly for it.

enter image description here

Is there a way to add some extra spacing to the right side? Like an empty button? If an empty button is the solution then I know how to do it, just not sure if this is a right way to do it.

woutr_be
  • 9,532
  • 24
  • 79
  • 129

3 Answers3

1

You can add a Flexible Space Bar Button Item there.

Mil0R3
  • 3,876
  • 4
  • 33
  • 61
0

Take a look at this other Stack Overflow artcile about adding flexible space:

How to create fixed space and flexible space bar button items programmatically?

Community
  • 1
  • 1
Anil
  • 2,539
  • 6
  • 33
  • 42
0

Place UIBarButtonItem between the specified place. Then go to Inspector of your xib, then go Attribute, select Flexible space option in Identifier option.

Ravi Kumar Karunanithi
  • 2,151
  • 2
  • 19
  • 41