1.3.1. 新建Xcode项目并设置故事板(Core Data 应用程序实践指南)

  创建名为Grocery Dude的Single View程序,并按默认设置处理,不勾选Core Date 和 Git。

  设计故事板:

  1. 选择Main.Storyboard
  2. 拖放一个 Table View Controller 到故事板中
  3. 选中新拖入的Table View Controller
  4. 勾选 “Is initial View Controller”
  5. 选中 Table View Controller 并点击Editor > Embed In > Navigation Controller
  6. 拖放 Bar Button Item 到 Table View Controller的右上角
  7. 选中 Bar Button Item
  8. 改属性 “Identifier” 为 "Add"
  9. 按住Control键,把 Bar Button Item 拖到View Controller中心,选择 "Action Segue" > "push"
  10. 选中 “Action Segue”,改属性 “Attributes Inspector”的 “Identifier”为 “Add Item Segue”
  11. 选中 Table View 的 Prototype Cell
  12. 修改 “Style” 为 “Basic” 
  13. 修改 “Identifier” 为 “Item Cell”

转载于:https://www.cnblogs.com/SimonGao/p/4927665.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值