GeekBand iOS Introductory 3. Button

interface builder(xib):绘制界面

代码(.m文件):更新界面、响应用户操作

Outlet

使用“IBOutlet”标记的变量(referencing outlet)连接对象

outlet connection:连接变量和对象

action connection:连接对象、对象的触发、触发的事件

例. Hello Button程序

1. 在界面中添加对象

2. 关联对象与代码

3. 写实现代码

4. 修改UIButton样式

使用代码创建button

你可能感兴趣的:(GeekBand iOS Introductory 3. Button)