UITabelView:常用属性@property (nonatomic) CGFloat rowHeight; // will return the default value if unset@property (nonatomic) CGFloat sectionHeaderHeight; // will return the default value if unset@property (nonatomic) CGFloat sectionFooterHeight; // will return the default value if unset@property(nonatomic, readwrite, retain) UIView *backg...
#pragma mark - 数组:用来存放同一数据类型的数据// 数组的定义:类型说明符 数组名[常量表达式] = {值1, 值2, 值3...}; // 定义一个float类型的数组,用来存储班级学员的分数 float scores[5] = {89.0, 70.2, 66.0, 90.5, 77.8}; // 定义一个int类型的数组,用来存放三个人的年龄 int ages[5] = {23, 28, 19}; // 定义一个char类型的数组,用来存放iPhone char iPhone[10] = {‘i‘, ‘P‘, ‘h‘, ‘o‘, ‘n‘,...
中高级iOS必备知识点之 RunLoop(一)RunLoop学习起来是很抽象,也不好理解,所以一定多看几次,多学学才能学好!这也是中高级iOS必须掌握的知识点,面试中经常遇到. 什么是 RunLoop? Run 表示运行,Loop 表示循环。结合在一起就是运行循环的意思。RunLoop就是在程序运行过程中循环做一些事情. RunLoop的应用范畴有哪些? 定时器(Timer)、PerformSelector GCD Async Main Queue 事件响应、手势识别、界面刷新 网络请求 AutoreieasePool 上...
RunLoop学习起来是很抽象,也不好理解,所以一定多看几次,多学学才能学好!这也是中高级iOS必须掌握的知识点,面试中经常遇到. 什么是 RunLoop? Run 表示运行,Loop 表示循环。结合在一起就是运行循环的意思。RunLoop就是在程序运行过程中循环做一些事情. RunLoop的应用范畴有哪些? 定时器(Timer)、PerformSelector GCD Async Main Queue 事件响应、手势识别、界面刷新 网络请求 AutoreieasePool 上面这些底层都是RunLoop在支撑,说白了...