0

iOS I have three right bar buttons items in my navigation Bar. I want to change the default spacing between them to zero, so that all the buttons stick to each other?

Amisha
  • 159
  • 1
  • 8

1 Answers1

1

You can try adding a spacer (UIBarButtonSystemItemFixedSpace) with a negative value. See this answer for more details.

Another approach could be using a custom item with a smaller size than its content then allowing drawing outside out of its bounds using UIView.clipToBounds property.

Community
  • 1
  • 1
Vincent Guerci
  • 14,379
  • 4
  • 50
  • 56