iOS UIView动画01
2016-06-04 13:14
344 查看
-(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];
}
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];
}
相关文章推荐
- 搭建esp8266+ardunio-IDE的开发环境
- APUE(3)---文件I/O (3)
- Android UI(Layouts)-FrameLayout 详解
- easyui学习笔记之动态创建手风琴菜单
- SQL Server 2008 R2 安装程序 Upgrade Failed due to the following Error.The error code is :-2147467259.Mes
- 基于GPUImage的实时美颜滤镜
- [JavaWeb]Servlet,Request,Response知识点补充
- UVA - 1584 Circular Sequence
- iOS 【UIKit-Interface Builder(面试)】
- windows环境下如何使用qtcreator添加一个画好的ui文件
- iOS 【UIKit-UITableViewCell的重用方式&static】
- (转)iPhone实战:动态改变UITableView中的Cell高度
- vs打开项目出错:未找到导入的项目“C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 5.0.props”的解决办法
- 3dmax做的屋顶种植园
- deque用法实例
- 1085. Perfect Sequence (25)
- 仿ios中pickerview控件类似滚桶的UI
- deque用法实例
- 【Android UI】theme style
- Espresso:快速的Android UI自动化测试