0

我有 i 按钮,通过添加动画,我将按钮从一个位置移动到另一个位置,在移动到指定位置之前,我想将按钮旋转到圆形位置。

我对动画有一个想法并在网上搜索,没有解决方案有效。我写了下面的移动代码,谁能告诉我如何为按钮添加旋转

    CGRect fr1 = CGRectMake(143, 429, 25, 25);
    [button setFrame:CGRectMake(121, 381, button.frame.size.width, button.frame.size.height)];

    [UIView animateWithDuration:0.3 animations:^{
        [self.navigationController setNavigationBarHidden:YES];
        [UIView setAnimationDidStopSelector:@selector(moveToRight:finished:context:)];
        [UIView setAnimationDelegate:self];
        [button setFrame:fr1];
    }];
4

1 回答 1

0

使用 cabasic 动画在 ownaxis 上旋转。这对你有用。

于 2012-07-18T08:46:45.330 回答