title: UIView frames reset when using autolayout
body: <p>I'm facing an issue. I'm working on an app and I'm using <code>storyboard</code> with <strong><em>Autolayout</em></strong> enabled. Now on one of my <code>UIViewControllers</code> I have placed a <code>UIView</code> (say A). Now A has multiple subviews (<code>UIViews</code> to be precise). I have applied the "<code>Horizontally and Vertically centered</code>" constraint on A. The subviews inside A don't have any constraints on them.</p>
  
  <p>Now in my code I have a method for animating the subviews that are inside A. Inside that method I call the <code>UIView's</code> animation method...</p>
  
  <pre><code>[UIView animateWithDuration: delay: options: animations: completion:];
  </code></pre>
  
  <p>and animate one of the subview's inside View A. Now the problem is that these frame changes don't persist. When I modal a view controller on current view controller and then dismiss it the frames of all the subviews inside A get reset.</p>
  
  <p>I searched for it and found out the problem is occuring because of <strong><em>Autolayout</em></strong>. I disabled it and then tried again and everything worked well.</p>
  
  <p>But what is the workaround with <strong><em>Autolayout</em></strong> enabled...?</p>
  
  <p>Am I missing something...?</p>
  
  <p>The interesting thing is that many posts on StackOverflow suggested that </p>
  
  <blockquote>
    <p>we should animate the constraints and NOT the frames when using autolayout. </p>
  </blockquote>
  
  <p>BUT I haven't applied any constraints on the subviews that are inside View A. Constraints are only applied on View A.</p>
  
  <p>Thanks.</p>