- storyboard中如何查看某个控件的头文件?
- 第三栏,找到类,点击箭头.
- 判断:所有的类都继承自NSObject?
- yes.
- label/button/textField的继承关系?
- UILabel -> UIView -> UIResponder
- UIButton -> UIControl -> UIView -> UIResponder
- UITextField -> UIControl -> UIView -> UIResponder
- 在方法中连线,方法的参数sender的含义?
- 这个控件自己.
- events是在哪个类中定义的?
- UIControl
- 头文件的特点有哪些(两点)?
- 越长用的属性和方法,越在最上面.
- 枚举类型,定义再头文件的最上方.
转载于:https://www.cnblogs.com/tanky/p/5705919.html