ios - 如何用XCode的Interface Builder设计一个超长的Scrollview

标签 ios swift xcode uiscrollview interface-builder

我通常以编程方式创建 View 。这次,我尝试使用 Storyboard。

Storyboard中的 View 不能长于设备屏幕。如何在 Storyboard中设置内容大小高于设备屏幕的 ScrollView ?

我还尝试使用 XIB 文件而不是 Storyboard,但后来我没能将 XIB 文件链接到 Storyboard。

最佳答案

您可以更改模拟大小(您也可以在 xib 中执行)

1-

enter image description here

2-

enter image description here

3-

enter image description here

提示:如果你的内容太长,你最好考虑一个UITableView

关于ios - 如何用XCode的Interface Builder设计一个超长的Scrollview,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56725666/

相关文章:

ios - 无法在 IOS 中创建快照

c++ - 体系结构 x86_64 的 undefined symbol : Xcode 5 Issues

ios - 在 Objective C 中为按钮调用操作时出错

ios - NSStringWithFormat 崩溃

ios - 无法在 Kiwi 中的模拟 CLLocation 对象上 stub 时间戳

ios - Xcode 8中Interface Builder的问题

Swift:应用程序外部的静默通知消息

swift - XCode - 如何使用分段控件更改按钮命运

ios - 使用 swift 将当前用户的消息列表保存在解析中

ios - 确定滚动时 UITableViewController 的哪些部分可见