iOS 翻翻看
来源:互联网 发布:剑灵捏脸数据导入图片 编辑:程序博客网 时间:2024/05/22 15:05
//视图已经加载后要做的事情
- (void)viewDidLoad
{
[superviewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
//修改视图背景颜色
self.view.backgroundColor=[UIColorredColor];
// 创建子视图再(0,0,100,100)的位置
UIView *myView=[UIViewnew];
myView.frame=CGRectMake(0,0, 100, 100);
// 添加子视图到父视图
[self.viewaddSubview:myView];
// 修改myView的背景颜色
myView.backgroundColor=[UIColorgreenColor];
// 创建视图2
UIView *myView2=[UIViewnew];
myView2.frame=CGRectMake(0,0, 50, 50);
myView2.backgroundColor=[UIColorblueColor];
[myViewaddSubview:myView2];
// 创建动画段
[UIViewbeginAnimations:nilcontext:nil];
// 设置动画时长
[UIViewsetAnimationDuration:2];
// 修改myView的原点坐标
myView.frame=CGRectMake(110,190, 100, 100);
myView2.alpha=.3;
// 开启动画
[UIViewcommitAnimations];
}
- iOS 翻翻看
- 翻翻看游戏实现逻辑
- 翻翻看游戏实现逻辑
- 翻翻看游戏实现逻辑
- 翻翻看游戏实现逻辑
- 翻翻看游戏实现逻辑
- 翻翻看游戏实现逻辑
- 翻翻看游戏实现逻辑
- 翻翻看游戏实现逻辑
- 翻翻看游戏实现逻辑
- 翻翻看游戏实现逻辑
- 翻翻看游戏实现逻辑
- 翻翻看游戏实现逻辑
- 翻翻看游戏实现逻辑
- 翻翻看游戏实现逻辑
- 翻翻看游戏实现逻辑
- 翻翻看游戏实现逻辑
- 翻翻看游戏实现逻辑
- core java(五)treeMap的原理和使用(1)
- PhotoSwipe简介
- Chapter 2 笔记 链表
- UNIX网络编程--TIME_WAIT
- ActivityGroup改为Fragment
- iOS 翻翻看
- php 多进程中的信号问题
- 如何追女神?微软大数据告诉你
- ip地址在数字与字符串之间的相互转换
- pmac
- DbgView 显示OutputDebugString 输出内容 不能显示问题总结
- Amazon Web Services S3 (Simple Storage Service)
- 一天一天学 windows phone 引言 + 大概认知 之 生命周期4事件(一)
- 学习安装越狱开发环境搭建