1

嗨,我正在使用 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];

我可以在我的自定义应用程序中旋转默认图钉吗?

4

1 回答 1

0

你可以,但是自定义注释不会旋转,只是因为地图会旋转(我明白,这就是你想要的。)

但是,我建议在继续之前先好好考虑一下。旋转地图注释并不是每个人都喜欢 UX 的。

于 2012-12-26T00:39:40.540 回答