VOSegmentedControlDemo

码农软件 · 软件分类 · 分段选择(Segment) · 2019-06-18 05:56:28

软件介绍

1. 支持图片和文字,包含6种简单排版: 只有文字, 只有图片, 图片在上下左右
    只有图片时,图片如果比分段大,则只铺满整个分段,若比分段小,则为图片大小居中
   图片在左,右时,图片层为正方形, 最大边长是分段的高度,
   图片在顶部或者底部时, 图片的最大高度为 分段高度 x 0.618
 
2. 指示器支持3种类型: 顶部线条,底部线条,方框; 可设置indicatorThickness和indicatorCornerRadius 变为圆角指示器, 当indicatorThickness = 0时, 指示器不显示

3. 指示器移动效果: 平滑移动,弹簧效果.

4. 可设置选中/未选中时文字的字体, 颜色

5. 可设置选中时的背景色,如果指示器设置成圆角的,背景也变成圆角

6. 可设置不选择任何分段

7. 控件最好用- (instancetype)initWithSegments:(NSArray *)segments; 方法创建,然后设置frame等(其他方式没仔细测试)
segments数组可以是预先创建好的VOSegment,或者使用NSDIctionary数组.具体的看代码.

8. 指示器移动效果可以自己写: 在VOIndicatorAnimation中加相应的方法


[Code4App.com]

本文地址:https://codercto.com/soft/d/8212.html

Chinese Authoritarianism in the Information Age

Chinese Authoritarianism in the Information Age

Routledge / 2018-2-13 / GBP 115.00

This book examines information and public opinion control by the authoritarian state in response to popular access to information and upgraded political communication channels among the citizens in co......一起来看看 《Chinese Authoritarianism in the Information Age》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

html转js在线工具
html转js在线工具

html转js在线工具