嗨,我正在使用 iPhone 中的地图视图,我正在旋转地图视图,它正在正确旋转。但是我的自定义图钉(imageview)没有旋转。
我在 iPhone 中运行 Maps 应用程序,在该应用程序中,当前位置的“v”形图像出现并根据地图视图旋转进行旋转。
我将以下代码用于自定义图钉动画(旋转):
// Setup the animation
[UIView beginAnimations: @"anim" context: nil];
[UIView setAnimationDuration:2.0];
[UIView setAnimationCurve:2.0];
//[UIView setAnimationRepeatCount:10];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationDelegate:self];
[UIView commitAnimations];
//--------For animating imageview ---------------------
[annView addSubview:locaterImageView];
我可以在我的自定义应用程序中旋转默认图钉吗?