title: calayer rotation
body: <p>I'm attempting to rotate my calayer object in my callback for a rotation gesture recognizer as such:</p>
  
  <pre><code>CGFloat angle = [(NSNumber *)[hitlayer valueForKeyPath:@"transform.rotation.z"] floatValue];
  
  hitlayer.transform = CATransform3DMakeRotation( (angle+90) / 180.0 * M_PI, 0.0, 0.0, 1.0);
  
  [hitlayer setValue:[NSNumber numberWithFloat:(angle+90)] forKey:@"transform.rotation.z"];
  </code></pre>
  
  <p>This works fine the first time. But subsequent times, the value returned by transform.rotation.z is still the original value (not the transformed value) so the layer doesn't rotate any further. Any ideas what i'm missing ?</p>
  
  <p>thanks</p>