Humzah Merchant
Humzah Merchant

Reputation: 67

Storyboard Element Layers

I have some text on a picture/background, but it is hidden. How do I make elements move back and forth?

Upvotes: 0

Views: 1824

Answers (1)

Jacob Ingalls
Jacob Ingalls

Reputation: 64

If you wish to make an UIView above another while using the storyboard all you have to do it make it above the other element in the document outline.

  1. Open on your storyboard
  2. Editor -> Show Document Outline (if it already open this would say Hide, but we want to use it)
  3. Find the two elements in the list
  4. Drag the UIView below the other one. You should be able to see the layers reorder as well.

In your case, it sounds like you should drag the UILabel below the UIImageView.

-- Edit --

I have added a before and after

Before

Before. Label below image

After

After. Label Above image

Upvotes: 3

Related Questions