【发布时间】:2012-10-19 01:57:47
【问题描述】:
Image showing what I would like to achieve
我想以动画方式将视图从一个位置移动到一个新位置。如果更新视图的图层位置,我认为视图将动画移动到新位置,我猜是implicit animation,但是没有动画,为什么?
- (IBAction)startAnimation:(id)sender {
CGPoint position = self.imageView.layer.position;
position.y += 90;
self.imageView.layer.position = position;
}
【问题讨论】:
标签: ios core-animation