Changing the z-order on components in Xcode

When you’ve added components into the interface builder in Xcode for an iOS application, you sometimes want to change the z-order and make components go to the top of the back. This can be particularly useful, for example, if you are adding an Image View to act as the application’s background image.

To change a component’s z-order, select the component in the storyboard and the choose the “Editor > Arrange” menu item and select from:

  • Send to Front
  • Send to Back
  • Send Forward
  • Send Backward