iOS按钮:LGRadioButtonsView
7n5e
9年前
LGRadioButtonsView 是 radio button 在 iOS 的实现。
Installation
With source code
Download repository, then add LGRadioButtonsView directory to your project.
With CocoaPods
CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. See the "Get Started" section for more details.
Podfile
platform :ios, '6.0' pod 'LGRadioButtonsView', '~> 1.0.0'
Usage
In the source files where you need to use the library, import the header file:
#import "LGRadioButtonsView.h"
Initialization
You have several methods for initialization:
- (instancetype)initWithNumberOfButtons:(NSUInteger)numberOfButtons;
More init methods you can find in LGRadioButtonsView.h