delegate

导航

 

2015年4月10日

摘要: //创建UIView对象//可以将其他空间添加到view上,当挪动View时,其他控件随之挪动UIView *view=[[UIView alloc]init];view.frame=CGRectMake(100,200,100,100);view.backgroundColor=[UIColor ... 阅读全文
posted @ 2015-04-10 19:54 jsonUserList 阅读(291) 评论(0) 推荐(0) 编辑
 
摘要: UIView *redView=[[UIView alloc]initWithFrame:CGRectMake(0,20,200,200)];redView.backgroundColor=[UIColor redColor];//允许子视图放大或缩小 默认autoresizeSubviews的就为... 阅读全文
posted @ 2015-04-10 19:06 jsonUserList 阅读(341) 评论(4) 推荐(0) 编辑
 
摘要: //系统默认UIButtonTypeSystemUIButton*btn1=[UIButton buttonWithType:UIButtonTypeSystem];//设置按钮的坐标和大小btn1.frame=CGRectMake(0,20,320,30);//设置按钮的背景颜色btn1.back... 阅读全文
posted @ 2015-04-10 09:09 jsonUserList 阅读(64) 评论(0) 推荐(0) 编辑
 
摘要: NSMutableArray *mutArray=[[NSMutableArray alloc]init];for(int i=1;i<13;i++){//创建图片名称NSString *imgName=[[NSString alloc]initWithFormat:@"player%i.png",... 阅读全文
posted @ 2015-04-10 09:01 jsonUserList 阅读(366) 评论(0) 推荐(1) 编辑
 
摘要: static 关键字,只初始化一次如果程序运行中没有改变它的值的话会一直根据程序变化 NSArray *array=@[@"车",@"马",@"象",@"王",@"后",@"象",@"马",@"车"]; for (int i=0; i<8; i++) { for (int j=0; j<8; j++ 阅读全文
posted @ 2015-04-10 08:48 jsonUserList 阅读(110) 评论(0) 推荐(0) 编辑