UIButton move animated problem
<p>how to make a UIButton when moving (animated) without shadow? i tried the code but cannot make it can someone modifify or point out the problem</p>

<pre><code>-(IBAction)move{

point=CGPointMake(0,1);
for(int i=0;i&lt;50;i++){
 NSLog(@"fdfafa");



 CATransition *animation = [CATransition animation];
 [animation setType:@"push"];
 [animation setSubtype:@"fromBottom"];
 [animation setDuration:0.5];
 //[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];

 [testButton.layer addAnimation:animation forKey:kAnimationKey];

 testButton.center = CGPointMake(testButton.center.x, testButton.center.y + point.y);

   }
NSLog(@"%f",testButton.center.y);

}
</code></pre>

<p>or have other better method to make a object move animated?</p>
