摘要:
1. 九宫格计算思路(主要就是控件位置(x/y)的改变) 1.1利用控件的索引index(该父控件中子控件的个数)计算出控件所在的行号和列号 1.2利用列号计算控件的x值 = 行号 *(子控件的宽度 + 间距) 1.3利用行号计算控件的y值 = 列号 *(子控件的高度 + 间距) /* 清除超过该V 阅读全文
posted @ 2016-03-02 19:20
学东哥哥
阅读(406)
评论(0)
推荐(0)
摘要:
1 #import "ViewController.h" 2 3 @interface ViewController () 4 5 @property (strong, nonatomic) UIButton *btn; 6 7 @end 8 9 @implementation ViewContro 阅读全文
posted @ 2016-03-02 17:24
学东哥哥
阅读(11695)
评论(0)
推荐(0)
摘要:
1 #import "ViewController.h" 2 #import <CoreText/CoreText.h> 3 @interface ViewController () 4 5 @property (strong, nonatomic) UILabel *label; 6 7 @pro 阅读全文
posted @ 2016-03-02 16:06
学东哥哥
阅读(1057)
评论(0)
推荐(0)
摘要:
## storyboard文件的认识 - 用来描述软件界面 - 默认情况下,程序一启动就会加载Main.storyboard - 加载storyboard时,会首先创建和显示箭头所指的控制器界面 ## IBAction和IBOutlet - IBAction: - 本质就是void - 能让方法具备 阅读全文
posted @ 2016-03-02 15:42
学东哥哥
阅读(316)
评论(0)
推荐(0)
浙公网安备 33010602011771号