gpt4 book ai didi

ios - Xcode 8.1 : No options for update frames on changing constraints

转载 作者:行者123 更新时间:2023-11-28 18:00:56 24 4
gpt4 key购买 nike

我已经完成了以下步骤:

  1. 在主视图中添加了 ScrollView 。
  2. 添加约束 0,0,0,0 top, left,bottom, right 到 scrollview。结果: ScrollView 更新框架

  3. 向 ScrollView 添加按钮

  4. 并添加约束 0,0,0,0 top, left,bottom,right 甚至 width,height

结果:无法更新 UIButton 的框架

我不明白为什么在对按钮 View 应用约束后我不能更新框架。

错误说:具有不明确的可滚动高度 enter image description here

如果我添加其他 View 或更改任何东西,例如给 scrollview 提供高度限制,它会变成红色并出现相同的错误。

任何建议。

最佳答案

Xcode 8.1 有新的更新帧按钮。

enter image description here

关于ios - Xcode 8.1 : No options for update frames on changing constraints,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40480952/

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