棋盘
来源:互联网 发布:linux查看磁盘利用率 编辑:程序博客网 时间:2024/04/27 17:03
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
_window = [[UIWindowalloc]initWithFrame:[UIScreenmainScreen].bounds];
_window.backgroundColor = [UIColorwhiteColor];
[_windowmakeKeyAndVisible];
for (int j =0; j <15; j ++) {
for (int i =0; i <10; i ++) {
UIView *view = [[UIViewalloc]initWithFrame:CGRectMake(20 * i, (20 * j)+20,20,20)];
if ((i + j) % 2 == 0) {
view.backgroundColor = [UIColorredColor];
}else{
view.backgroundColor = [UIColorblackColor];
}
[_window addSubview:view];
}
}
return YES;
}
最终效果
- 棋盘
- 棋盘!!!
- 棋盘
- 棋盘
- 棋盘
- 棋盘
- 棋盘覆盖
- 棋盘覆盖
- 棋盘覆盖
- 棋盘问题
- 棋盘问题
- 棋盘覆盖
- 棋盘覆盖
- 棋盘覆盖
- 棋盘覆盖
- 棋盘问题
- 棋盘覆盖
- 棋盘覆盖
- JS 数组去重
- p122 14
- 自定义Lable设置Lable与文字长度,两个字符串拼接
- poj 1062 昂贵的聘礼 枚举等级dijkstra
- Eclipse为成员变量设置前缀,eclipse前缀
- 棋盘
- 数据库(第一范式,第二范式,第三范式)
- HDU_OJ-The Seven Percent Solution
- 在编译器(如vs2008)里调用别人写好的lib和dll
- R语言----基于ggplot绘图世界
- V4L2+FFMPEG+live555实现流媒体服务端
- 第28题
- p122第10题(判断是否为三角形)
- 数据库