UI_简单的NeonLignt
来源:互联网 发布:qt界面编程实例 编辑:程序博客网 时间:2024/05/16 08:16
#import "AppDelegate.h"
@interface AppDelegate ()
@end
@implementation AppDelegate
- (void)dealloc{
[_window release];
[super dealloc];
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
[_window release];
UIView *view1 = [[UIView alloc] initWithFrame:CGRectMake(40,40, 300, 300)];
view1.backgroundColor = [UIColor redColor];
[self.window addSubview:view1];
[view1 release];
view1.tag =1000;
UIView *view2 = [[UIView alloc] initWithFrame:CGRectMake(60,60, 260, 260)];
view2.backgroundColor =[UIColor orangeColor];
[self.window addSubview:view2];
[view2 release];
view2.tag =1001;
UIView *view3 = [[UIView alloc] initWithFrame:CGRectMake(80,80, 220, 220)];
view3.backgroundColor =[UIColor yellowColor];
[self.window addSubview:view3];
[view3 release];
view3.tag =1002;
UIView *view4 = [[UIView alloc] initWithFrame:CGRectMake(100,100, 180, 180)];
view4.backgroundColor =[UIColor greenColor];
[self.window addSubview:view4];
[view4 release];
view4.tag =1003;
UIView *view5 = [[UIView alloc] initWithFrame:CGRectMake(120,120, 140, 140)];
view5.backgroundColor =[UIColor cyanColor];
[self.window addSubview:view5];
[view5 release];
view5.tag =1004;
UIView *view6 = [[UIView alloc] initWithFrame:CGRectMake(140,140, 100, 100)];
view6.backgroundColor =[UIColor blueColor];
[self.window addSubview:view6];
[view6 release];
view6.tag =1005;
UIView *view7 = [[UIView alloc] initWithFrame:CGRectMake(160,160, 60, 60)];
view7.backgroundColor =[UIColor purpleColor];
[self.window addSubview:view7];
[view7 release];
view7.tag =1006;
UIView *view8 = [[UIView alloc] initWithFrame:CGRectMake(180,180, 20, 20)];
view8.backgroundColor =[UIColor whiteColor];
[self.window addSubview:view8];
[view8 release];
view8.tag =1007;
NSTimer *time = [NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(colorChange) userInfo:nil repeats:YES];
[time fire];
return YES;
}
- (void)colorChange
{
UIColor *color = [self.window viewWithTag:1000].backgroundColor;
for (NSInteger i = 0; i < 8; i++) {
[self.window viewWithTag:1000 + i ].backgroundColor = [self.window viewWithTag:1000 + i + 1].backgroundColor;
}
[self.window viewWithTag:1007].backgroundColor = color;
}
- UI_简单的NeonLignt
- UI_程序的基本结构
- UI_最基础的登陆界面
- UI_三个UITableView的省市区联动
- 支付宝芝麻信用UI_(一)基本功能的实现
- 【2017.11.15】UI_提高作品质量的技巧
- UI_组件
- UI_多线程
- UI_协议
- UI_手势
- UI_手势
- UI_霓虹灯
- UI_动画
- UI_通讯录
- UI_数据库
- UI_封装
- UI_手势
- ui_*.h文件中自动生成的界面类的使用方法
- ArcGIS Desktop 10.1+ArcEngine10.1完全破解安装教程
- UI_UIButton
- 社会友谊和人群移动:基于位置的社交网络中的用户移动(一)
- CodeForces 18A Triangle好暴力啊→_→
- arm mmu源码分析
- UI_简单的NeonLignt
- html编写的过程中,为什么font设置属性的时候,第二个属性不起作用
- 7月英语——牙牙学语
- 浅谈 System.Decimal 结构
- 浅谈 System.Linq.Enumerable.AsEnumerable 方法
- Qt实战之开发CSDN下载助手 (1)
- Spring讲解------------零配置
- 谈谈 .NET Reflector
- ThinkPHP中RBAC类的四种用法分析