ios成长之路UIView
来源:互联网 发布:oracle导入数据dmp 编辑:程序博客网 时间:2024/05/29 19:44
view旋转
CGAffineTransform at =CGAffineTransformMakeRotation(M_PI/2); //先顺时钟旋转90
at =CGAffineTransformTranslate(at,200,0);
[self.benview setTransform:at];
view缩小
UIView *tonguoview = [[UIView alloc] initWithFrame:CGRectMake(0,100,349,190)];
tonguoview.clipsToBounds = YES;
tonguoview.layer.cornerRadius = 5;
tonguoview.backgroundColor = [UIColor blackColor];
[self.view addSubview:tonguoview];
CGAffineTransform at =CGAffineTransformMakeRotation(M_PI/2); //先顺时钟旋转90
at =CGAffineTransformTranslate(at,200,0);
[self.benview setTransform:at];
view缩小
UIView *tonguoview = [[UIView alloc] initWithFrame:CGRectMake(0,100,349,190)];
tonguoview.clipsToBounds = YES;
tonguoview.layer.cornerRadius = 5;
tonguoview.backgroundColor = [UIColor blackColor];
[self.view addSubview:tonguoview];
// 创建一个view
UIView *seview=[[UIView alloc]initWithFrame:CGRectMake(0,90,10,10)];
// 短片界限
seview.clipsToBounds = YES;
// 圆弧角
seview.layer.cornerRadius = 1;
// 背景色
seview.backgroundColor = [UIColor redColor];
// 让这个view显示
[self addSubview:seview];
UIView *seview=[[UIView alloc]initWithFrame:CGRectMake(0,90,10,10)];
// 短片界限
seview.clipsToBounds = YES;
// 圆弧角
seview.layer.cornerRadius = 1;
// 背景色
seview.backgroundColor = [UIColor redColor];
// 让这个view显示
[self addSubview:seview];
0 0
- ios成长之路UIView
- IOS成长之路-使UIView视图缓慢的移动
- IOS成长之路-两个UIView界面传值--Delegate
- IOS成长之路
- IOS成长之路-NSDate
- IOS成长之路-NSDate
- IOS成长之路-NSDate
- IOS之UIView详解
- iOS 开发之 UIView
- IOS开发之UIView
- iOS大典之UIView
- iOS新手入门之UIView
- iOS学习之UIView
- iOS之UIView动画
- iOS之UIView Animation
- iOS之UIView Animations
- ios成长之路之UITextField
- ios成长之路之imageview
- ListView的增删改查等方法
- C++类模板中的模板函数
- 利用MATLAB将文本中的数据写入Excel
- 关于 std::set/std::map 的几个为什么
- 1-23下午方法和数组
- ios成长之路UIView
- windows server 2008R2下 TOMCAT 应用程序部署
- c语言-高级指针
- OpenCV相机标定函数
- C++强大背后
- 深度学习及并行化实现概述
- tcpdump 命令详解
- 06-2
- css中要求文字必须是一行,超出部分自动隐藏的问题