iOS - 不同 Storyboard 中的 UITableViewCell

标签 ios swift xcode uitableview storyboard

我想使用一个 UITableViewController,它有四个不同类型的复杂单元格。不同的团队成员需要同时处理不同的自定义 UITableViewCell。我们正在 Git 上工作,因此为了避免冲突,我被要求为四个不同的单元格制作四个不同的 Storyboards。但是我不能在没有 View Controller 的情况下将单元格或简单的 UIView 放在不同的 Storyboard 中。请指导我,我该如何实现。

Please keep in mind that cells will be instantiated and added on runtime

最佳答案

为您的每个单元格创建 xib,并将其注册到您的 UITableView 中,您可以在项目的任何地方使用此 xib,并使用相同的 CellIdentifier

How to Make UITableVIewCEll XIB

关于iOS - 不同 Storyboard 中的 UITableViewCell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41296971/

相关文章:

ios - 在 ARC 下,卸载 viewcontroller 时需要为所有强成员设置 nil 吗?那是必须的吗?

objective-c - 在给定特定分母的情况下,找到 float 小数的分子

ios - 主视图窗口中的 UISplitViewController 详细 View Controller 加载

swift - 如何以编程方式将 UITableView 中 UILabel 的高度折叠为零

iOS:按照 Apple 的教程进行 Segue 问题

ios - 下载 JSON 时如何修复延迟的 UITableView 滚动性能?

ios - 以编程方式访问 Apple Notes 内容

ios - 在 Swift 中转换 UTC 时间

ios - Xcode Instruments - Zombies - 我在找什么?

ios - Xcode 8.3 存档错误 : Linker command failed with exit code 1