IBOutlet用来声明一个成员可以链接到xib的一个控件。 链接之后,对使用IBOutlet声明的成员操作就是对xib中控件的操作。 其实我觉得就是在初始化IBOutlet声明成员的时候,使用了设计器中链接的控件参数作为参数。官方: IBOutlet Identifier used to identify a property so Interface Builder can synchronize the display and connection of outlets with Xcode. Insert this identifier immediately before the type in any declarations. For examples, including how to use it with the @property syntax, see “Xcode Integration”
链接之后,对使用IBOutlet声明的成员操作就是对xib中控件的操作。
其实我觉得就是在初始化IBOutlet声明成员的时候,使用了设计器中链接的控件参数作为参数。官方:
IBOutlet
Identifier used to identify a property so Interface Builder can synchronize the display and connection of outlets with Xcode. Insert this identifier immediately before the type in any declarations. For examples, including how to use it with the @property syntax, see “Xcode Integration”
IBOutlet只是标识而已