-1

I would like to make my add button be in the bottom right hand side of my the screen but when ever I add a UIBarButton it goes to the left and I can't move it to where I want. Also because I have a tableView I can't add a normal button because it just becomes a part of the table view. I attached a photo of my main.storyBoard below.

Main.StoryBoard

Essentially, I just want to move the add button from the left to the right.

rmaddy
  • 314,917
  • 42
  • 532
  • 579

1 Answers1

1

Assuming the lower bar is a UIToolbar...

Adding a Flexible Space Bar Button Item to the left of your UIBarButtonItem should push the item to the right end, assuming there are no other items.

The Flexible Space Bar Button Item is at the bottom of the Object library:

Flexible Space Bar Button Item

particleman
  • 635
  • 1
  • 7
  • 12