3.9 iOS 控件 - Switch 开关


AiOS switch with customizable colors. Use the Touch button on the component to get the state of the switch.
可自定义颜色的开关。
使用组件上的 Touch 按钮获取开关的状态。

Enable 启用
A boolean that is true when the switch is displayed.
勾选时启用开关。

Position 位置
The position to display the layer.
坐标位置。

Anchor 锚点
The anchor point to position the layer relative to. See Coordinates for more information.
位于屏幕中的锚点,详细信息阅读Coordinates 坐标

Tint Color 开颜色
The color of the switch background when turned on.
打开开关时的背景颜色。

Opacity 不透明度
The opacity of the switch.
开关的不透明度。

Turn On 打开
A pulse that turns the switch on.
勾选后初始状态为打开状态。

Turn Off 关闭
A pulse that turns the switch off.
勾选后初始状态为关闭状态

Touch
On / Off 开关
A boolean that is true when the switch is on.
开关打开时布尔值为真。

板栗:估计是连到别的模块同步状态用的

全部图层,查看 图层目录


Related Patches

Switch


Related Layers 相关图层

Action Sheet 操作表Activity Indicator 加载菊花Alert View 警告弹窗Fake Keyboard 模拟键盘Page Control 翻页小点Screen 滑屏Slider 滑块Status Bar 状态栏Tab Bar 标签栏Text Field 文本输入框Visual Effect 毛玻璃效果


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 13,482评论 0 23
  • 今日所学:如何提高个人的工作效率,一是确定局面在自己的掌控之中,有选择的权利,满足控制的欲望,提高动力;二是赋予这...
    磐石yy阅读 702评论 0 0
  • 在最近的雅思听力教学过程中,有很多同学向笔者反映雅思听力从2015年至今,section 1已经不像以前那么简单了...
    蔓蔓longre阅读 4,990评论 0 0
  • 偏离这个世界 偏离这片土地 我只想逃离 可以的话 偏离语言范围 偏离行为规范 我只想隐遁 这样的话 一句话要说过多...
    马大菜才不菜阅读 2,350评论 0 0
  • 每个人的一生都有许多梦想,但如果其中一个不断搅扰着你,剩下的就仅仅是行动了。 1.写作带来的微妙变化,很爽。 从开...
    雲淡风轻阅读 3,851评论 23 14