I’m trying to add 2 UIBarButtonItems to the bottom toolbar programmatically from the UIViewController. Right now I’m creating the buttons, adding them to a NSArray, and then calling [self setToolbarItems:buttonArray animated:YES]. This adds the buttons to the bottom left hand corner of the toolbar, right next to each other. What I want to do is add one button the bottom left of the toolbar and the other button to the bottom right. How would I go about doing this?
I’m trying to add 2 UIBarButtonItem s to the bottom toolbar programmatically from the
Share
Your toolBarItems should look something like that:
This will give you something like that: