【问题标题】:UITableViewCell prototype cell across various UITableViews跨各种 UITableViews 的 UITableViewCell 原型单元格
【发布时间】:2013-10-30 10:09:17
【问题描述】:

一个 UITableViewCell 原型单元似乎只能在一个 UITableView 下创建。如何使用故事板在不同的 UITableView 中使用相同的原型单元?

【问题讨论】:

    标签: ios uitableview storyboard uistoryboard


    【解决方案1】:

    我认为你做不到。 我通常最终将 Cell 重构为一个单独的 XIB(您可以从 Storyboard 中复制/粘贴)然后调用:

    - (void)registerNib:(UINib *)nib forCellReuseIdentifier:(NSString *)identifier

    UITableViewviewDidLoad

    【讨论】:

      猜你喜欢
      • 2012-08-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-31
      • 1970-01-01
      相关资源
      最近更新 更多