如何在视图中垂直居中两个 UILabel(动态高度),例如 Label1(2 行,截断)和 Label2(1 行,截断):
+------------------------------------------+
| |
| |
|Label1 Label1 Label1 Label1 Label1 Label1 |
|Label1 Label1 Label1 Label1 Label1 ... |
|Label2 Label2 Label2 Label2 Label2 ... |
| |
| |
+------------------------------------------|
我猜这对于单个 UILabel 和 NSAttributedString 是不可能的(截断 2 行的一部分,1 行的另一部分)。