DLRadioButton
DLRadioButton
是一个易于使用且高度可定制的 iOS 单选按钮控件。它是 UIButton
的子类,并且与 Objective-C
和 Swift
都能良好地工作。
自发布以来,DLRadioButton 已经成为 iOS 上最受欢迎的单选按钮控件
预览
用法
安装方法
- 选项 1:简单地将
DLRadioButton.h
和DLRadiobutton.m
添加到您的项目中。 - 选项 2:将
pod 'DLRadioButton', '~> 1.4'
添加到您的Podfile
。 - 选项 3:将
github "DavydLiu/DLRadioButton" ~> 1.4
添加到您的Cartfile
。
在界面构建器中添加单选按钮
自定义DLRadioButton
要以编程方式添加单选按钮,请参阅示例项目。
要求
ARC, iOS 6.0
作者
David Liu。如有疑问,请提交问题。
许可
DLRadioButton可在MIT许可证下使用。