我从这开始:

当用户点击这些面孔中的任何一个时,它必须设置为屏幕中心的动画,然后显示它周围的一些按钮,有点像这样

问题是我不知道我该怎么做,所以我问你一些建议,你怎么建议我应该这样做.
可能重复:
取消UIView动画?
我有以下动画,我想按下按钮时停止它.你能告诉我我该怎么办?我无法弄清楚如何.谢谢.
-(void)animationLoop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context
{
[UIView beginAnimations:@"Move randomly" context:nil];
[UIView setAnimationDuration:1];
// [UIView setAnimationBeginsFromCurrentState:NO];
CGFloat x = (CGFloat) (arc4random() % (int) self.bounds.size.width);
CGFloat y = (CGFloat) (arc4random() % (int) self.bounds.size.height);
CGPoint squarePostion = CGPointMake(x, y);
strechView.center = squarePostion;
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(animationLoop:finished:context:)];
[UIView commitAnimations];
}
Run Code Online (Sandbox Code Playgroud) 我正在尝试对Yahoo Mail服务器进行OAuth身份验证,我尝试使用oauth.io和GMTOauth,但这些都没有可能获得OAuth 1.0身份验证将返回的oauth_session_handle.我真的需要这个,所以我可以刷新我的令牌.谢谢.