iOS: 布局可视化语法 Visual Format Syntax
2024-10-19 04:30:26
可视化语法 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]
- 宽度约束 Width Constraint
-
[button(>=50)]
- 与父视图关联 Connection to Superview
-
|-50-[purpleBox]-50-|
- 垂直布局 Vertical Layout
-
V:[topField]-10-[bottomField]
- 直连视图 Flush Views
-
[maroonView][blueView]
- Priority
-
[button(100@20)]
- 视图宽度相等 Equal Widths
-
[button1(==button2)]
- 多条件 Multiple Predicates
-
[flexibleButton(>=70,<=100)]
- 一行完整的布局 A Complete Line of Layout
-
|-[find]-[findNext]-[findField(>=20)]-|
最新文章
- 解决Eclipse中文乱码 - 技术博客 - 51CTO技术博客 http://hsj69106.blog.51cto.com/1017401/595598/
- poj3070 (斐波那契,矩阵快速幂)
- unique函数的作用
- 自学 iOS – 三十天三十个 Swift 项目
- WinForm利用 WinApi实现 淡入淡出 弹出 效果 仿QQ消息
- linux第11天 共享内存和信号量
- okhttputils开源库的混淆配置(Eclipse)
- CSS3 动画记
- HTML新元素
- python相关的工具
- STL中的set容器
- 【4】JAVA---地址App小软件(UpdatePanel.class)(表现层)
- ToDoList-学习中看到的知识盲点
- Java中 == 和 equals()详解
- openfire服务器+Spark搭建即时聊天系统 &; 阿里云的初步探索
- NGINX压力测试
- 值得一学的webpack4
- python的bit_length方法
- npm WARN enoent ENOENT: no such file or directory, open &#39;C:\Users\package.json&#39;
- 新唐N32905U1DN开发教程:MDK环境下工程搭建(官方提供的固件库)(转)