Reputation: 1560
How remove default free spaces between UIBarButtonItems on toolbar ? You can see free space in screen
Upvotes: 2
Views: 745
Reputation: 1798
You want to create a single custom UIBarButtonItem
. Use the initWithCustomView:
initializer of the UIBarButtonItem
class to create an item with both buttons in it. Create your own UIView
subclass, a custom UIView
with both buttons in it, or use a UISegmentedControl
as the custom view directly.
Upvotes: 2