UI中霓虹灯效果代码
来源:互联网 发布:优酷网软件下载 编辑:程序博客网 时间:2024/03/28 23:00
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Override point for customization after application launch. NSMutableArray *arr = [NSMutableArray arrayWithObjects:[UIColor redColor], [UIColor yellowColor],[UIColor blueColor],[UIColor greenColor],[UIColor grayColor],[UIColor purpleColor],[UIColor orangeColor],nil]; for (int i = 0 ; i < 7; i++) { UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0 + i * 20, 0 + i *20, 320 - 40 * i , 568 - i * 40)]; view.tag = 100 + i; view.backgroundColor = arr[i]; [self.window addSubview:view]; [view release]; } [NSTimer scheduledTimerWithTimeInterval:0.2 target:self selector:@selector(time) userInfo:nil repeats:YES]; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKeyAndVisible]; return YES;}- (void)time{ UIColor *temp = [self.window viewWithTag:100 ].backgroundColor; for (int i = 0; i <7; i++) { [self.window viewWithTag:100 +i ].backgroundColor = [self.window viewWithTag:101 +i ].backgroundColor; } [self.window viewWithTag:106 ].backgroundColor = temp;}
1 0
- UI中霓虹灯效果代码
- 实现霓虹灯闪烁效果(UI)
- ui 霓虹灯
- 霓虹灯效果
- UI创建霓虹灯视图
- IOS 霓虹灯效果
- 霓虹灯效果(UIView)
- 3种霓虹灯效果
- IOS 霓虹灯效果(oc)
- Android霓虹灯效果
- 文字霓虹灯效果
- 安卓霓虹灯效果
- 简单的霓虹灯效果
- android 霓虹灯效果
- js实现霓虹灯效果
- 字体霓虹灯效果
- 用iOS的UI知识编出霓虹灯效果(经典小题)
- IOS-UI学习一,霓虹灯
- Android毛玻璃效果侧滑菜单
- Git 常用命令
- 运放的相位补偿
- iOS 霓虹灯效果(同种颜色依次向外扩展)
- ICT工作有感<二>
- UI中霓虹灯效果代码
- 马云用这10句话骂醒员工
- HDU 4975 (杭电多校 #10 1005题)A simple Gaussian elimination problem.(网络流之最大流)
- Box2D C++ DebugDraw
- IOS开发——UIKit
- 为多级指针分配内存
- 北京十年诚信房产证信誉第一身份证电话 13611766320
- tpl渲染表格以后刷新表格数据
- linux svn 使用