gpt4 book ai didi

ios - 在 iOS9 Interface Builder 中,如何将 View 保持在状态栏下方?

转载 作者:行者123 更新时间:2023-11-28 21:34:14 27 4
gpt4 key购买 nike

在 IB 中,我的 Storyboard中有这个场景 enter image description here

当在模拟器中运行时,它看起来完全像这样 enter image description here

显然我希望搜索栏垂直位于状态栏下方。我怎样才能做到这一点?我的 UITableViewController 嵌入在 UITabBarController 顺便说一下。

我查看了这个技术问答 QA1797 ( link ),但它谈论的是 iOS 7,根据该文档,它应该适用于 UITabBarController,但在我的情况下它不适用。

我正在使用 XCode 7.0 (7A220)

更新 1:UITableView 不可拖动 enter image description here

更新 2:我的搜索场景的文档大纲 View enter image description here

更新 3:表格 (UITableView) 的尺寸检查器显示尺寸 X/Y 不可编辑(我不知道为什么),所以我无法重新定位表格 enter image description here

最佳答案

最好的解决方案是将 Storyboard的初始 View Controller 嵌入到导航 Controller 中。

步骤: 1. 从 Storyboard中选择初始 View Controller 。 2. 然后转到编辑器 -> 嵌入导航 Controller 。

现在运行,您会看到问题已解决。 enter image description here

关于ios - 在 iOS9 Interface Builder 中,如何将 View 保持在状态栏下方?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34534294/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com