title: How to force layoutSubviews of UIView?
body: <p>I have a custom UIView which has a dedicated, manually set frame for portrait and landscape orientation because autoresizingMasks just don't work in my case.</p>
  <p>I set this frame in:</p>
  <pre><code> - (void)viewWillAppear:(BOOL)animated
  </code></pre>
  <p>And it works as expected.</p>
  <p>My problem is now, that my UIView furthermore has subviews that also have a dedicated position for portrait/landscape.</p>
  <p>I position these subviews in:</p>
  <pre><code>- (void)layoutSubviews
  </code></pre>
  <p>If I now leave my viewController in <strong>e.g.</strong> portrait orientation, rotate to landscape on another viewController and then come back to this viewController I see that my view got resized correctly, but the subviews of my view, which get positioned in layoutSubviews are not repositioned yet but are resized in an animated fashion after the view already appeared.</p>
  <p>I do nothing in viewDidAppear and I already tried calling</p>
  <pre><code> - (void)layoutIfNeeded
  </code></pre>
  <p>As well as:</p>
  <pre><code> - (void)setNeedsLayout
  </code></pre>
  <p>In <code>viewWillAppear</code>, but it doesn't seem to change anything.</p>
  <p>Any ideas what I'm doing wrong?</p>