title: AutoLayout CGAffineTransform iOS7 iOS8
body: <p>For hours I've been trying to figure why autolayout is breaking my constraint in iOS8 but not in iOS7 when I apply CGAffineTransformMakeScale. (I use Xcode 6.0.1 (6A317) with Storyboard and Autolayout).</p>
  
  <p>The code : </p>
  
  <pre><code>TCTGridController *gridController = self.gridController;
  stackController.view.frame = gridController.view.frame;
  stackController.stackCollectionView.transform = CGAffineTransformMakeScale(0.1, 0.1);
  
  [gridController.view.superview addSubview:stackController.view];
  
  [UIView animateWithDuration:0.2 animations:^{
      stackController.stackCollectionView.transform = CGAffineTransformMakeScale(1, 1);
      [stackController.stackCollectionView layoutIfNeeded];
  } completion:^(BOOL finished) {
      [stackController didMoveToParentViewController:self];
  }];
  </code></pre>
  
  <p>iOS7 result :</p>
  
  <p><img src="https://i.stack.imgur.com/llspY.png" alt="enter image description here"></p>
  
  <p>iOS8 result :</p>
  
  <p><img src="https://i.stack.imgur.com/vpMKW.png" alt="enter image description here"></p>
  
  <p>Constraint error on iOS8 :</p>
  
  <pre><code>(
  "&lt;NSLayoutConstraint:0x7fa126a9b100 V:[_UILayoutGuide:0x7fa126a9a900]-(120)-[TCTCollectionView:0x7fa125139400]&gt;",
  "&lt;_UILayoutSupportConstraint:0x7fa126a8b500 V:[_UILayoutGuide:0x7fa126a9a900(0)]&gt;",
  "&lt;_UILayoutSupportConstraint:0x7fa126a8a960 V:|-(0)-[_UILayoutGuide:0x7fa126a9a900]   (Names: '|':UIView:0x7fa126a9a810 )&gt;",
  "&lt;NSAutoresizingMaskLayoutConstraint:0x7fa126c86840 h=--- v=--- 'UIView-Encapsulated-Layout-Top' V:[UIView:0x7fa126a9a810]-(0)-|&gt;"
  )
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Alak</p>