2

是否可以使文本字段或其他 UI 填充屏幕宽度?Android中的“match_parent”或“fill_parent”之类的东西。

例如 ..如果不是,使用“willRotateToInterfaceOrientation”并每次计算新尺寸是否是正确的解决方案?

4

1 回答 1

2

1)您应该阅读View Programming Guide 中的使用自动调整大小规则自动处理布局更改。

2)检查Size Inspector您的Interface Builder.

查看这些漂亮的链接: iPhone Rotation, View Resizing and Layout Handling and Understanding UIView autoresizing with this SO Question: UIView Autoresizing Resources

于 2013-05-08T14:33:17.097 回答