Igor Bidiniuc
Igor Bidiniuc

Reputation: 1560

How remove default free spaces between UIBarButtonItems on toolbar?

How remove default free spaces between UIBarButtonItems on toolbar ? You can see free space in screen

Here is free space

Upvotes: 2

Views: 745

Answers (1)

Mathew
Mathew

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

Related Questions