您的位置:首页 > 产品设计 > UI/UE

UIVIEW 动画接口解释

2011-09-16 18:01 323 查看
CGRect rect = self.frame;
rect.origin.x = rect.origin.x+2;
rect.origin.y = rect.origin.y+200;

[UIView beginAnimations:nil context:nil];
//------------时间长短------------
[UIView setAnimationDuration:1];
//------------速度的变化------------
//		UIViewAnimationCurveEaseInOut,         // slow at beginning and end
//		UIViewAnimationCurveEaseIn,            // slow at beginning
//		UIViewAnimationCurveEaseOut,           // slow at end
//		UIViewAnimationCurveLinear
//[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
//------------延迟------------
//[UIView setAnimationDelay:1];
//------------反复------------
//[UIView setAnimationRepeatAutoreverses:YES];
//------------执行一段时间的动画 后面是直接显示------------
//[UIView setAnimationRepeatCount:0.1];
//------------线程中的动画------------
//[UIView setAnimationBeginsFromCurrentState:YES];

self.frame = rect;
//[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self cache:YES];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:self cache:YES];
[UIView commitAnimations];
[NSThread sleepForTimeInterval:0.15];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: