美文网首页
GeekBand iOS Introductory 3. But

GeekBand iOS Introductory 3. But

作者: robinn9810 | 来源:发表于2016-05-25 15:22 被阅读13次

interface builder(xib):绘制界面

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

Outlet

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

outlet connection:连接变量和对象

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

例. Hello Button程序

1. 在界面中添加对象

2. 关联对象与代码

3. 写实现代码

4. 修改UIButton样式

使用代码创建button

相关文章

网友评论

      本文标题:GeekBand iOS Introductory 3. But

      本文链接:https://www.haomeiwen.com/subject/lartdttx.html