https://github.com/davydliu/dlradiobutton
Radio Button for iOS
https://github.com/davydliu/dlradiobutton
ios radio-buttons swift uibutton uicontrol
Last synced: about 1 year ago
JSON representation
Radio Button for iOS
- Host: GitHub
- URL: https://github.com/davydliu/dlradiobutton
- Owner: DavydLiu
- License: mit
- Created: 2014-10-05T18:37:58.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-03-25T13:42:35.000Z (about 2 years ago)
- Last Synced: 2025-05-10T15:40:18.238Z (about 1 year ago)
- Topics: ios, radio-buttons, swift, uibutton, uicontrol
- Language: Objective-C
- Homepage:
- Size: 1.42 MB
- Stars: 949
- Watchers: 24
- Forks: 205
- Open Issues: 45
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Support: Supporting Files/Info.plist
Awesome Lists containing this project
README
# DLRadioButton
[](http://cocoadocs.org/docsets/DLRadioButton)
[](http://cocoadocs.org/docsets/DLRaidoButton)
[](http://cocoadocs.org/docsets/DLRadioButton)
[](https://github.com/Carthage/Carthage)
`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 its release, DLRadioButton has become the most popular radio buttons control for iOS 🎉. Thank you for all the great feedback and making it better for all of us 👏.
## Preview

## Usage
#### To install:
* Option 1: simply put `DLRadioButton.h` and `DLRadiobutton.m` in your project.
* Option 2: add `pod 'DLRadioButton', '~> 1.4'` to your `Podfile`.
* Option 3: add `github "DavydLiu/DLRadioButton" ~> 1.4` to your `Cartfile`.
#### To add radio buttons in interface builder:
1. Put some UIButtons onto a View and change the UIButtons' type to "custom".

2. Set the UIButtons' class to "DLRadioButton".

3. Set "otherButtons" outlet.

#### To customize DLRadiobutton:
* Simply set properties directly in Interface Builder.

* Property reference:

#### To add radio buttons programmatically, please refer to the example project.
## Requirements
ARC, iOS 6.0
## Author
David Liu. For help or any questions, feel free to [open an issue](https://github.com/DavydLiu/DLRadioButton/issues/new).
## License
DLRadioButton is available under the MIT license.