要支持这样的纵向和横向UIView
:
+-------------------+
| +---------------+ |
| | | |
| | Fixed | |
| | size | |
| | Square | |
| | | |
| +---------------+ | Protrait
| +---------------+ |
| | Flexible C | |
| +---------------+ |
| +---+ +---+ |
| | A | | B | |
| +---+ +---+ |
+-------------------+
+----------------------------------+
| +---------------+ +------------+ |
| | | | Flexible | |
| | Fixed | | C | |
| | size | +------------+ |
| | Square | +---+ +---+ |
| | | | A | | B | |
| +---------------+ +---+ +---+ |
+----------------------------------+
Horizontal
我需要手动重新定位子视图willRotateToInterfaceOrientation
吗?或者可以Autolayout
自动为我做吗?
B
是一个按钮总是停留在右下方A
是相对于B
(最好与 的左侧对齐C
)定位的按钮C
用于文本,大小灵活A
并且B
在下面C