title: CGAffineTrasformRotation also rotates the coordinating system
body: <p>I am rotating a <code>UIView</code> and then adding a new <code>UIView</code> to it. But it looks really weird.</p>
  
  <p>Here is how it looks. The red box is the thing thats not as I expected.</p>
  
  <p><img src="https://i.stack.imgur.com/8hvfH.png" alt="enter image description here"></p>
  
  <p>I want the red box to be in the same direction as the blue box.</p>
  
  <p>Im rotating the <code>UIView</code> like this:</p>
  
  <pre><code>[self setTransform:CGAffineTransformRotate(self.transform, DEGREES_TO_RADIANS(90))];
  </code></pre>
  
  <p>And then adding the red box as a <code>UIView</code> the normal way.</p>
  
  <p>Im thinking that this is just the way transformations work and Im wondering if there is a way to fix it?</p>