title: How to transform (rotate) a already exist CALayer/animation?
body: <p>I have added a CALayer to the UIView of my app:</p>
  
  <pre><code>    CATransition *animation = [CATransition animation];
      [animation setDelegate:self];
      [animation setDuration:0.35];
      [animation setTimingFunction:UIViewAnimationCurveEaseInOut];
          animation.type = @"pageCurl";
          animation.fillMode = kCAFillModeForwards;
          animation.endProgress = 0.58;
      [animation setRemovedOnCompletion:NO];
      [[self.view layer] addAnimation:animation forKey:@"pageCurlAnimation"];
  </code></pre>
  
  <p>Now when the user rotates the device, the layer always stays in the same position on the screen (in line to the homescreen button). Is it possible to rotate the animation/layer? I tried </p>
  
  <pre><code>self.view.layer.transform = CGAffineTransformMakeRotation (angle);
  </code></pre>
  
  <p>but this code just rotates the UIView and not the animation/layer I set.</p>