可视化语法 Visual Format Syntax

The following are examples of constraints you can specify using the visual format. Note how the text visually matches the image.

标准宽度 Standard Space

[button]-[textField]

iOS: 布局可视化语法 Visual Format Syntax
宽度约束 Width Constraint

[button(>=50)]

iOS: 布局可视化语法 Visual Format Syntax
与父视图关联 Connection to Superview

|-50-[purpleBox]-50-|

iOS: 布局可视化语法 Visual Format Syntax
垂直布局 Vertical Layout

V:[topField]-10-[bottomField]

iOS: 布局可视化语法 Visual Format Syntax
直连视图 Flush Views

[maroonView][blueView]

iOS: 布局可视化语法 Visual Format Syntax
Priority

[button(100@20)]

iOS: 布局可视化语法 Visual Format Syntax
视图宽度相等 Equal Widths

[button1(==button2)]

iOS: 布局可视化语法 Visual Format Syntax
多条件 Multiple Predicates

[flexibleButton(>=70,<=100)]

iOS: 布局可视化语法 Visual Format Syntax
一行完整的布局 A Complete Line of Layout

|-[find]-[findNext]-[findField(>=20)]-|

iOS: 布局可视化语法 Visual Format Syntax

相关文章:

  • 2021-09-15
  • 2022-02-04
  • 2022-01-01
  • 2021-08-23
  • 2021-04-25
  • 2021-06-19
  • 2021-11-21
  • 2021-06-18
猜你喜欢
  • 2021-12-17
  • 2022-12-23
  • 2021-06-07
  • 2021-08-05
  • 2021-04-25
  • 2022-02-08
  • 2022-01-02
相关资源
相似解决方案