如果 UITableView 位于自己的 xib 文件中而不是 Storyboard 中,它们可以具有静态内容吗?

发布于 2024-12-28 18:51:03 字数 380 浏览 2 评论 0原文

当我创建一个新的 UITableViewController 并单击随附的 .xib 文件中的 UITableView 时,我看到以下内容:

UITableView in a XIB file

请注意右侧属性的“表视图”部分。具体来说,没有地方可以像 UIStoryboard 中的 UITableView 一样选择“内容”作为动态原型或静态内容(如下)。

故事板中的 UITableView 属性

给出了什么?我想不出为什么这些功能仅限故事板的任何原因,我是否遗漏了一些东西?

When I make a new UITableViewController and click on the UITableView in the accompanying .xib file, I see this:

UITableView in a XIB file

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).

UITableView properties in a storyboard

What gives? I can't think of any reason why these features would be Storyboard-only, am I missing something?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

可爱暴击 2025-01-04 18:51:03

目前它只是故事板功能。

希望 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文