Latest 1.4.9
Homepage https://github.com/DavydLiu/DLRadioButton
License MIT
Platforms ios 6.0, requires ARC
Authors

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 release, it has became the most popular radio buttons control for iOS🎉. Thank you for great feedbacks 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:

  1. Put some UIButtons onto a View and change the UIButtons’ type to "custom".

    change UIButton Type

  2. 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 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.

Latest podspec

{
    "name": "DLRadioButton",
    "version": "1.4.9",
    "summary": "A highly customizable Radio Button for iOS",
    "description": "A highly customizable Radio Button for iOS.nn* Buttons are drew by UIBezierPath, customize it however you want.n* You can also use pictures to indicate buttons' selection state.n",
    "homepage": "https://github.com/DavydLiu/DLRadioButton",
    "screenshots": [
        "https://raw.githubusercontent.com/DavydLiu/DLRadioButton/master/Images/DLRadioButton_screenshot1.png"
    ],
    "license": "MIT",
    "authors": {
        "David Liu": "[email protected]"
    },
    "social_media_url": "http://twitter.com/DavydLiu",
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/DavydLiu/DLRadioButton.git",
        "tag": "1.4.9"
    },
    "source_files": "DLRadioButton/**/*.{h,m}",
    "exclude_files": "Classes/Exclude",
    "requires_arc": true
}

Pin It on Pinterest

Share This