自定义 Segmented Control
来源:互联网 发布:java uploadify例子 编辑:程序博客网 时间:2024/05/29 19:26
https://github.com/rs/SDSegmentedControl
Segmented Control
A drop-in remplacement for UISegmentedControl that mimic iOS 6 AppStore tab controls.
Features
- Segments with image, image and text or text only
- Interface Builder support (just throw a UISegmentedControl and change its class SDSegmentedControl)
- Animated segment selection
- Content aware dynamic segment width
- Scrollable if there are too many segments for width
- Animated segment selection, with animated arrow
- Appearance customization thru UIAppearance
- UIControl events for value changes
- Enable or disable specific segments
- Indiviual customizable segment width
TODO
- Shadow effect / arrows, which show that the segment control is scrollable
Usage
Import SDSegmentedControl.h
and SDSegmentedControl.m
into your project and add QuartzCore
framework to Build Phases
->Link Binary With Libraries
.
You can then use SDSegmentedControl
class as you would use normal UISegmentedControl
.
Licenses
All source code is licensed under the MIT-License.
The icons in the example project are taken from Glypish Free Iconscreated by Joseph Wain and licensed under the Creative Commons Attribution 3.0 United States License.
Authors
- Olivier Poitrey rs@dailymotion.com
- Marius Rackwitz git@mariusrackwitz.de
- 自定义 Segmented Control
- 什么是segmented control
- segmented control的使用
- Segmented Control - 仿 app store的Segmented Control
- iPhone Segmented Control:UISegmentedControl Tutorial
- IOS学习之segmented control
- IOS学习之segmented control
- Scroll Segmented Control(Swift)
- How to use the Segmented Control
- 一个定制SEGMENTED CONTROL的开源代码
- iOS学习——Segmented Control
- TextView,TextField,slider,segmented Control等各类控件的使用
- swift UI专项训练30 Segmented Control段控件
- 《iOS Human Interface Guidelines》——Segmented Control
- segmented control切换segment界面小技巧,小注意
- Android仿IOS的Segmented Control 选项卡。
- iPhone开发【十二】多视图技术总结之四:Segmented Control
- iPhone开发【十二】多视图技术总结之四:Segmented Control
- 最大堆的插入/删除/调整/排序操作(图解+程序)(JAVA)
- 解决Android平台移植ffmpeg的一揽子问题
- enq: HW - contention 问题的处理
- Apriori算法学习(一)
- Linux存储实验五:Samba服务共享文件权限配置
- 自定义 Segmented Control
- Android开发之Java集合类性能分析
- Java lastIndexOf 、indexOf方法
- http://localhost:8080 报404错误
- http post 方法
- 一个使用FFmpeg库读取3gp视频的例子-Android中使用FFmpeg媒体库(三)
- 我的小快排(两种分割方法)
- 人民币转换大小写
- 【移动GIS】MBTiles移动存储简介