Skip to content

Powerful buttons group framework for iOS. Make a Button Group to control. 建立按鈕群組。

License

Notifications You must be signed in to change notification settings

irons163/IRSingleButtonGroup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Platform

IRSingleButtonGroup

Features

  • Single Button Selection.
  • Single Button Selection Demo: Deselect able.
  • Multi Buttons Selection.

Install

Cocoapods

  • Add pod 'IRSingleButtonGroup' in the Podfile
  • pod install

Usage

  • more examples in the demo applications.

Basic

IRSingleButtonGroup* singleButtonGroup = [[IRSingleButtonGroup alloc] init];
singleButtonGroup.buttons = @[self.button1, self.button2, self.button3];
singleButtonGroup.delegate = self;

#pragma mark - SingleButtonGroupDelegate
- (void)didSelectedButton:(UIButton *)button {
    NSLog(@"Button%ld", button.tag);
}

- (void)didDeselectedButton:(UIButton *)button {
    NSLog(@"Button%ld", button.tag);
}

Advanced settings

singleButtonGroup.canMultiSelected = NO;
singleButtonGroup.canSelectWhenSelected = YES;
[singleButtonGroup setInitSelected:0];

Screenshots

Demo

About

Powerful buttons group framework for iOS. Make a Button Group to control. 建立按鈕群組。

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published