title: IOS view transformation modifies frame?
body: <p>I have a view in which I am doing some specific drawings in drawRect. These drawings are dynamic and are based on the view's width and height. Then, the view which contains it applies a rotation transformation to it. However this transformation seems to adjust the values for my view's frame which impacts my drawing in drawRect. </p>
  
  <p>NSLog(@"before:%f,%f,%f,%f",button.frame.origin.x,button.frame.origin.y,button.frame.size.width,button.frame.size.height);</p>
  
  <pre><code>    CGAffineTransform currentTransform = button.transform;
      CGAffineTransform transformRotate = CGAffineTransformMakeRotation(degreesToRadians);
      button.transform = transformRotate;
  
      NSLog(@"after:%f,%f,%f,%f",button.frame.origin.x,button.frame.origin.y,button.frame.size.width,button.frame.size.height);
  </code></pre>
  
  <p>Here is the output:</p>
  
  <p>before:50.000000,100.000000,150.000000,50.000000
  after:65.849365,47.548096,118.301262,154.903809</p>
  
  <p>Is this correct behaviour or am I applying the transformation incorrectly?</p>