How to remove a stack from a storyboard

I am trying to create my own UI design by stack view. Unfortunately, I cannot, so now I want to remove stackview from my storyboard. I have no idea how to remove it and return to my previous design without stackview. So how do I do this?

I already tried this:

Select the stackview and click Editor -> Unembed 

But this situation removed the stack view, and the design did not change back to stackview enter image description here

thanks

+5
source share
3 answers

Editor -> Unembed should be enough to remove StackView. Here and here are two tutorials about StackViews where you can learn how it works and how to implement it correctly.

+9
source

To remove Stack View, two methods:

(A) (1) open the navigator, and then view it; (2) select the type of stack we want to delete / delete (see select the view of the stack ); (3) In the top Xcode toolbar, click "Editor", then "Unembed". (See Editor -> Unembed ). The above will remove the Stack View that was selected (A) removes the stack that "embeds" the user interface elements. User interface elements are saved.

(B) (1) open the navigator, then view the diagram; (2) select the type of stack we want to delete / delete; (3) press the delete button; (B) deletes the stack and embedded user interface elements. User interface elements are also deleted.

+6
source

The problem is that the design will not return to how it was before the presentation of the stack. When you push it onto the stack, it removes the restrictions.

To answer your question in order to delete a stack view, you can simply select it and press delete. To return it to how it was before, go back and arrange them as you want, and add restrictions. It seems like you can be new to auto layout, Id recommend this tutorial: https://www.raywenderlich.com/115440/auto-layout-tutorial-in-ios-9-part-1-getting-started-2

And here is a tutorial specifically for stack views: https://www.raywenderlich.com/114552/uistackview-tutorial-introducing-stack-views

In case you are more likely a visual student: https://www.youtube.com/watch?v=zGi1XyhUREY

+1
source