Technical Q&A QA1921

Unembedding views from stack views

Q:  How do I unembed my views from a stack view?

A: You can remove views embedded in a stack view by using the Editor menu or the Stack Tool.

Using the Editor menu

  1. Select your stack view in the Interface Builder canvas.

  2. Choose Editor > Unembed as shown in Figure 1.

Figure 1  Select Unembed to remove the stack view. The numbers in this figure correspond to the steps above.

Xcode removes the stack view around your views as shown in Figure 2.

Figure 2  Views after removing them from the stack view.

Using the Stack Tool

  1. Select your stack view in the Interface Builder canvas.

  2. Hold down the Option key while selecting the Stack Tool button in the layout bar at the bottom of the canvas.

Figure 3  Select the Stack button. The numbers in this figure correspond to the steps above.
  1. Select Unembed from the ensuing contextual menu as shown in Figure 4 to unembed your views.

Figure 4  Select Unembed to remove your views from a stack view


Document Revision History


DateNotes
2016-05-16

New document that how to remove views from a stack view.