摘要:
1.创建UIButton 跟其他方式不同,不是直接alloc,init 创建 用工厂化方式创建 UIButton *sureBtn = [UIButton buttonWithType:UIButtonTypeSystem];//选择Button 的样式 系统给定的 //按钮的位置 sureBtn. 阅读全文
posted @ 2017-02-24 13:18
人生在与不断学习。
阅读(149)
评论(0)
推荐(0)
摘要:
创建控件: UILabel *label = [[UILabel alloc]init]; //设置控件大小 label.frame = CGRectMake(50,100,300,40);//分别为 X.Y.width.height; //第二种定位 label.bounds = CGRectMa 阅读全文
posted @ 2017-02-24 08:27
人生在与不断学习。
阅读(123)
评论(0)
推荐(0)
摘要:
1. 创建工程,这步很简单,百度下即可,在info.plist 里面 去掉 Main 的 ,便于新手练习ios,创建ios工程后,在AppDelegate.m,里面的方法application 加上几步 一.创建一个窗口:self.window = [[UIWindow alloc]initWith 阅读全文
posted @ 2017-02-24 08:09
人生在与不断学习。
阅读(214)
评论(0)
推荐(0)