title: UIView animateWithDuration doesn't animate cornerRadius variation
body: <p>I'm trying to animate the change of the <code>cornerRadius</code> of a <code>UIView</code> instance <code>layer</code>, but the variation of the <code>cornerRadius</code> takes place immediately.</p>
  <p>Here's the code:</p>
  <pre><code>UIView *view = [[UIView alloc] initWithFrame:CGRectMake(10, 10, 100, 100)];
  view.layer.masksToBounds = YES;
  view.layer.cornerRadius = 10.0;
  [UIView animateWithDuration:1.0 animations:^{
      
      [view.layer.cornerRadius = 0.0;
      
  }];
  </code></pre>
  <p>Thanks everybody who is going to give me any tips.</p>
  <strong>EDIT:</strong>
  <p>I managed to animate this property using <code>Core Animation</code>, using a <code>CABasicAnimation</code>.</p>
  <pre><code>CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@&quot;cornerRadius&quot;];
  animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear];
  animation.fromValue = [NSNumber numberWithFloat:10.0f];
  animation.toValue = [NSNumber numberWithFloat:0.0f];
  animation.duration = 1.0;
  [viewToAnimate.layer addAnimation:animation forKey:@&quot;cornerRadius&quot;];
  [animation.layer setCornerRadius:0.0];
  </code></pre>