I understand that iOS 5 added the capability of setting multiple right and left buttons, but can this be done through Interface Builder? Whenever I attempt to drag a bar button item to the navigation bar it only allows one on the right and one on the left.
Asked
Active
Viewed 5,030 times
1 Answers
11
Update: Xcode 7 add multi buttons support.
Just drag bar button items to navigation bar, you may need add a navigation item first if the view controller don't have one.
You can drag a UIView to the navigation bar, then add two UIButton to that view.
Cannot add two UIBarButtonItem througn interface builder directly. But you can make it through code. Like [UINavigationItem setRightBarButtonItems:animated:]
.

BB9z
- 2,432
- 1
- 30
- 36
-
-
1
-
your explanation "you may need add a navigation item first if the view controller don't have one." saved my day. – bittu Jul 23 '18 at 06:55