DavydLiu
DLRadioButton
Objective-C

Radio Button for iOS

Last updated Jun 17, 2026
939
Stars
209
Forks
45
Issues
0
Stars/day
Attention Score
61
Language breakdown
Objective-C 88.9%
Swift 11.1%
โ–ธ Files click to expand
README

DLRadioButton

Version License Platform Carthage compatible

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

screenshot1

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:

  • Put some UIButtons onto a View and change the UIButtons' type to "custom".
change UIButton Type
  • Set the UIButtons' class to "DLRadioButton".
change UIButton Class

3. Set "otherButtons" outlet.

set otherButtons outlet

To customize DLRadiobutton:

* Simply set properties directly in Interface Builder.

design DLButton

* Property reference: DLRadioButton

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.

License

DLRadioButton is available under the MIT license.

ยฉ 2026 GitRepoTrend ยท DavydLiu/DLRadioButton ยท Updated daily from GitHub