-(void) launchButtonAnimations {
CGRect frame = _launchButton.frame;
CGPoint center = _launchButton.center;
//首尾式动画
[UIView beginAnimations:nil context:nil];
//执行动画
//设置动画执行时间
[UIView setAnimationDuration:2.0];
//设置代理
[UIView setAnimationDelegate:self];
//设置动画执行完毕调用的事件
self.launchButton.center = center;
self.launchButton.bounds = CGRectMake(0, 0, frame.size.height, frame.size.height) ;
[UIView setAnimationDidStopSelector:@selector(didStopAnimation)];
[UIView commitAnimations];
}
991

被折叠的 条评论
为什么被折叠?



