启动页动画
来源:互联网 发布:哪个淘宝网的东西是正品 编辑:程序博客网 时间:2024/05/14 20:07
/**
* CGAffineTransformMakeScale 缩放函数,括号内为比例。
+ (void)animateWithDuration:(NSTimeInterval)duration
animations:(void (^)(void))animations
completion:(void (^)(BOOL finished))completion
view由一个大小缩放到另外一个大小的动画效果。
*
*
*/
UIView *singleMapView = [[UIViewalloc]
initWithFrame:CGRectMake(self.view.frame.size.width/4,self.view.frame.size.height/4 ,self.view.frame.size.width/2,self.view.frame.size.height/2)];
singleMapView.backgroundColor = [UIColorblackColor];
[self.viewaddSubview:singleMapView];
singleMapView.transform = CGAffineTransformMakeScale(0.05, 0.05);
[UIViewanimateWithDuration:1
animations:^{
singleMapView.transform =CGAffineTransformMakeScale(1.2,1.2);
}completion:^(BOOL finish){
[UIView animateWithDuration:1
animations:^{
singleMapView.transform =CGAffineTransformMakeScale(0.9,0.9);
}completion:^(BOOL finish){
[UIViewanimateWithDuration:1
animations:^{
singleMapView.transform =CGAffineTransformMakeScale(1,1);
}completion:^(BOOL finish){
}];
}];
}];
UIView *singleMapView = [[UIViewalloc]
initWithFrame:CGRectMake(self.view.frame.size.width/4,self.view.frame.size.height/4 ,self.view.frame.size.width/2,self.view.frame.size.height/2)];
singleMapView.backgroundColor = [UIColorblackColor];
[self.viewaddSubview:singleMapView];
singleMapView.transform = CGAffineTransformMakeScale(0.05, 0.05);
[UIViewanimateWithDuration:1
animations:^{
singleMapView.transform =CGAffineTransformMakeScale(1.2,1.2);
}completion:^(BOOL finish){
[UIView animateWithDuration:1
animations:^{
singleMapView.transform =CGAffineTransformMakeScale(0.9,0.9);
}completion:^(BOOL finish){
[UIViewanimateWithDuration:1
animations:^{
singleMapView.transform =CGAffineTransformMakeScale(1,1);
}completion:^(BOOL finish){
}];
}];
}];
- 启动页动画
- iOS启动页动画效果
- iOS 设置启动页动画
- 启动页的一种简单动画
- 添加启动动画 (自制ios启动动画)
- 主程序启动前动画
- Android 启动动画资料
- Android启动程序动画
- Android开机启动动画
- activity启动动画
- android程序启动动画
- 延迟启动动画
- 动画启动程序
- 启动动画 跳转页面
- 模拟制作启动动画
- 启动延迟动画
- phoneGap开机启动动画
- iOS App启动动画
- Firmata实例代码
- 电脑无法修改ip地址
- 移位密码
- POJ 1321棋盘问题(DFS)
- spring MVC配置详解
- 启动页动画
- 开始写博客咯
- Ubuntu 14.04 下安装 IT++
- linux下awk内置函数(split/substr/length/gsub)
- 模拟器那些
- CSS样式覆盖规则
- linux消息队列
- iOS沙盒(sandbox)机制及获取沙盒路径
- Android 如何切换到 Transform API?