UI初级-笔记

来源:互联网 发布:淘宝网卖家中心 - 首页 编辑:程序博客网 时间:2024/06/11 06:02

IBAction:


1.能保证方法可以连线

2.相当于void

IBOutlet:

能保证属性可以连线

3.常见错误

setValue:forUndefinedKey:]: this class is not key value coding

错误原因是:连线出问题了


4.frame\center\bounds

 frame:能修改位置和尺寸

 center:能修改位置

 bounds:能修改尺寸(x\y一般都是0)


0 0