ABSegmentedViewController 0.4.0

ABSegmentedViewController 0.4.0

测试已测试
语言语言 Objective-CObjective C
许可证 MIT
发布最后发布2015年3月

Alan Bouzek维护。



示例

alt tag

用法

要运行示例项目,克隆仓库,并首先从示例目录运行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文件。