我是 Xcode 的新手,对此我找不到任何东西。我想使用 UIViewAnimationCurve 将 UIImage 从视图的左下角移动到左上角。我知道 iPhone 的原点在左上角。如何将其更改为左下角,以便动画可以在右上角结束?这是我到目前为止所拥有的:
[UIView animateWithDuration:2.0
delay:2
options:UIViewAnimationCurveLinear | UIViewAnimationOptionAllowUserInteraction
animations:^{[MyImage setFrame:CGRectMake(0,200, 82, 78)]; }
completion:^(BOOL finished) {
[MyImage setFrame:CGRectMake(200,0, 82, 78)];
}];