私はボタンを持っています。アニメーションを追加することで、ボタンをある位置から別の位置に移動しています。指定された位置に移動する前に、ボタンを円の位置に回転させたいと考えています。
アニメーションについて 1 つのアイデアがあり、Web で検索しましたが、解決策はありません。移動するためのコードを以下に書きました。ボタンの回転を追加する方法を教えてください。
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];
}];