测试已测试 | ✗ |
语言语言 | Objective-CObjective C |
许可证 | MIT |
发布最后发布 | 2015年3月 |
由Alan Bouzek维护。
要运行示例项目,克隆仓库,并首先从示例目录运行pod install
。
应该使用静态初始化器创建ABSegmentedViewController的实例
+(instancetype) ABSegmentedViewController segmentedContainerViewControllerWithViewControllers:(NSArray *)viewControllers
selectedTextAttributes:(NSDictionary *)selectedTextAttributes
deselectedTextAttributes:(NSDictionary *)deselectedTextAttributes
selectedBackgroundColor:(UIColor *)selectedBackgroundColor
deselectedBackgroundColor:(UIColor *)deselectedBackgroundColor
viewControllers NSArray应包含实现AVSegmentedInternalViewController协议的UIViewControllers(AVSegmentedInternalViewController.h)。
textAttributes NSDictionaries是标准属性化文本字典。
选中项和未选中项指的是分段控制的段的状态。
Alan Bouzek,github: abouzek,[email protected]
ABSegmentedViewController开源许可协议为MIT。详见LICENSE文件。