我正在做一个 Ray Wanderlich iOS 学徒,我们现在正在使用 AutoLayout。
我被要求向这个特定的 TableView 添加一些约束,我可以这样做。
我不能做的是修改“更新帧”行为。在这种特殊情况下,本书要求我将其设置为“无”。
我可以告诉你,这不是默认行为,因为我的标签已经按照书中的警告缩小了——见附件警告和图片。
Note: If you had set Update Frames to “Items of New Constraints”, then Interface Builder would have moved the label to where the dotted box is. That’s why you left it set to None because you didn’t want it to do that here.
我可以按照教程的意图做些什么?
最佳答案
所以要么你点击圆形箭头:
或者简单地使用这个快捷键:
关于ios - 如何在 XCode 8.3 中将 "Update Frames"设置为 None?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44938203/