DLRadioButton
DLRadioButton
is an easy to use and highly customizable radio buttons control for iOS. It's a subclass of UIButton
, and works smoothly with both Objective-C
and Swift
.
Since release, it has became the most popular radio buttons control for iOS
Preview
Usage
####To install:
- Option 1: simply put
DLRadioButton.h
andDLRadiobutton.m
in your project. - Option 2: add
pod 'DLRadioButton', '~> 1.4'
to yourPodfile
. - Option 3: add
github "DavydLiu/DLRadioButton" ~> 1.4
to yourCartfile
.
####To add radio buttons in interface builder:
-
Put some UIButtons onto a View and change the UIButtons' type to "custom".
-
Set the UIButtons' class to "DLRadioButton".
-
Set "otherButtons" outlet.
####To customize DLRadiobutton:
####To add raido buttons programmatically, please refer to example project.
Requirements
ARC, iOS 6.0
Author
David Liu. For help or any questions, feel free to open an issue.
License
DLRadioButton is available under the MIT license.