UI创建霓虹灯视图
来源:互联网 发布:广通软件 编辑:程序博客网 时间:2024/04/29 04:38
NSArray *arr = [NSArrayarrayWithObjects:[UIColorpurpleColor],[UIColorcyanColor],[UIColorblueColor],[UIColorgreenColor],[UIColoryellowColor],[UIColororangeColor],[UIColorredColor], nil];
for (int i =0; i < 7; i++) {
UIView *view = [[UIViewalloc] initWithFrame:CGRectMake(i * (320 /14), i * (568 /14), 320 - i * (320 /14) * 2, 568 - i * (568 / 14) * 2)];
view.backgroundColor = arr[i];
[self.windowaddSubview:view];
[viewrelease];
}
for (int i =0; i < 7; i++) {
UIView *view = [[UIViewalloc] initWithFrame:CGRectMake(20 + i *20 , 40 + i *20, 280 - i *20 * 2, 280 - i * 20 * 2)];
view.backgroundColor = [UIColorcolorWithRed:(arc4random() %256 / 128 )green:(arc4random() %256 / 128) blue:(arc4random() % 256 /128 )alpha:0.5];
[self.windowaddSubview:view];
[viewrelease];
}
- UI创建霓虹灯视图
- ui 霓虹灯
- UI设计 创建视图
- UI 创建见View视图
- 彩虹视图,霓虹灯静态效果
- UI中霓虹灯效果代码
- 实现霓虹灯闪烁效果(UI)
- IOS-UI学习一,霓虹灯
- iOS之UI编程--霓虹灯的实现
- iOS之UI编程--霓虹灯的实现
- 用简单UI控件实现霓虹灯
- 霓虹灯
- 霓虹灯
- 霓虹灯
- 霓虹灯
- UI星辰:UI代码创建视图和Label设置
- UI视图
- UI视图
- UIView一些知识点
- 黑马程序员,黑马论坛--------枚举和单例设计模式的区别
- 第八章 8.1.2节练习
- 新手必看--学习linux的七个忠告
- svn add文件名包含@符号的解决方案
- UI创建霓虹灯视图
- C++ primer(第五版) 练习 8.1 个人 code
- osgi实战学习之路:6. Service-1
- 基于s3c6410 otg controller的gadget driver及usb枚举分 析
- struts2 是什么?
- Js 判断对象 Undefined 和 Null
- HOWTO: Be more productive by Aaron swartz!
- 微博、微信上的假消息害苦了哥
- 简单理解service,activity,binder,intent