woutr_be
woutr_be

Reputation: 9722

Add empty space in navigation bar

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.

Upvotes: 0

Views: 1218

Answers (3)

Ravi Kumar Karunanithi
Ravi Kumar Karunanithi

Reputation: 2218

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

Upvotes: 0

Anil
Anil

Reputation: 2554

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?

Upvotes: 0

Mil0R3
Mil0R3

Reputation: 3956

You can add a Flexible Space Bar Button Item there.

Upvotes: 1

Related Questions