UIStackView : Is it really necessary to call both removeFromSuperView and removeArrangedSubview to remove a subview?
<p>From the <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIStackView_Class_Reference/">UIStackView Class Reference</a></p>

<p>In removeArrangedSubview:</p>

<blockquote>
  <p>To prevent the view from appearing on screen after calling the stack’s removeArrangedSubview: method, explicitly remove the view from the subviews array by calling the view’s removeFromSuperview method.</p>
</blockquote>

<p>In arrangedSubview:</p>

<blockquote>
  <p>Whenever an arranged view’s removeFromSuperview method is called, the stack view removes the view from its arrangedSubview array</p>
</blockquote>

<p>From these, it seems that calling just removeFromSuperview is enough to remove a subview and I've been using it like that without problems. I also confirmed the behavior by logging the count of the arrangedSubviews array when removeFromSuperview is called.</p>

<p>A lot of tutorials and comments here on S/O however, say to call both. Is there a reason for this? Or do people just do it because the documentation says so?</p>