如果 UITableView 位于自己的 xib 文件中而不是 Storyboard 中,它们可以具有静态内容吗?
当我创建一个新的 UITableViewController 并单击随附的 .xib 文件中的 UITableView 时,我看到以下内容:
请注意右侧属性的“表视图”部分。具体来说,没有地方可以像 UIStoryboard 中的 UITableView 一样选择“内容”作为动态原型或静态内容(如下)。
给出了什么?我想不出为什么这些功能仅限故事板的任何原因,我是否遗漏了一些东西?
When I make a new UITableViewController and click on the UITableView in the accompanying .xib file, I see this:
Notice the "Table View" section of the properties on the right. Specifically, there is no place to pick the 'Content' as Dynamic Prototypes, or Static Content, as with a UITableView in a UIStoryboard (below).
What gives? I can't think of any reason why these features would be Storyboard-only, am I missing something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前它只是故事板功能。
希望 Apple 也能够为标准 XIB 文件提供这个非常有用的功能。
Currently it is a Storyboard only feature for now.
Hopefully Apple will make this very useful feature available to standard XIB files as well.