title: How to set anchor point in CABasicanimation
body: <p>I have a clock needle image with size 12x44.The below code is what i have tried to rotate it in clock direction</p>
  
  <pre><code>Code :
  
   -(void)rotationLargeAnimation:(UIView *) itemView withDuration:(float) durat withDirection:(int)intDirect {
          CABasicAnimation *rotation1 = [CABasicAnimation animationWithKeyPath:@"transform.rotation"];
          rotation1.fromValue = [NSNumber numberWithFloat:0];
          rotation1.toValue = [NSNumber numberWithFloat:(2*M_PI)];
          rotation1.duration = durat; // Speed
          rotation1.repeatCount = HUGE_VALF; // Repeat forever. Can be a finite number.
           itemView.layer.anchorPoint = CGPointMake(0.5,0.2);
          [itemView.layer addAnimation:rotation1 forKey:@"Spin"];
  
      }
  </code></pre>
  
  <p>When rotating clock needle it is rotating based on top position.How do i rotate needle based on bottom position.any help appreciated.thanks in advance.</p>