2017年10月31日

Xcode -(Swift版)Storyboard教程 1.5:使用原型单元格的子类

摘要: 引言 1 - 经过前三节的探究,这个表视图用起来已经相当不错了,但我不大喜欢用 tag 来获取原型单元格的子视图。如果可能的话,把这些 label 于 outlet 连接并使用相应属性要优雅得多。事实是可行的 详细操作 1 - 在项目中以 Cocoa Touch Class 模板添加一个新文件,命名 阅读全文

posted @ 2017-10-31 19:35 低头捡石頭 阅读(60) 评论(0) 推荐(0)

UI基础 - storyboard_swift版 02:Prototype Cell

摘要: Prototype Cell 1 -在故事模板中拖进一个 UITableViewController,并设置为初始场景。cell 配置如下 2 - 指定一个 data source:新建 PlayersViewController,它是 UITableViewController 的子类。然后回到 阅读全文

posted @ 2017-10-31 17:08 低头捡石頭 阅读(73) 评论(0) 推荐(0)

导航