Skip to content

Golface/DLRadioButton

This branch is 1 commit ahead of DavydLiu/DLRadioButton:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8d9c932 · May 14, 2024

History

57 Commits
Apr 19, 2018
Nov 29, 2018
Apr 19, 2018
Nov 27, 2018
Jul 25, 2016
Feb 1, 2016
May 14, 2024
Apr 19, 2018
Apr 19, 2018
Jul 6, 2015
May 14, 2024
Apr 18, 2017

Repository files navigation

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:

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

About

Radio Button for iOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 87.5%
  • Swift 12.5%