Skip to content

Commit

Permalink
Fix log bug in demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavydLiu committed Dec 5, 2015
1 parent 6afa65b commit b99195d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DLRadioButton.podspec.json
@@ -1,6 +1,6 @@
{
"name": "DLRadioButton",
"version": "1.4.2",
"version": "1.4.3",
"summary": "A highly customizable Radio Button for iOS",
"description": "A highly customizable Radio Button for iOS.\n\n* 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",
Expand All @@ -17,7 +17,7 @@
},
"source": {
"git": "https://github.com/DavydLiu/DLRadioButton.git",
"tag": "1.4.2"
"tag": "1.4.3"
},
"source_files": "DLRadioButton/**/*.{h,m}",
"exclude_files": "Classes/Exclude",
Expand Down
Expand Up @@ -5,7 +5,13 @@ @implementation DLDemoViewController
#pragma mark - Helpers

- (IBAction)logSelectedButton:(DLRadioButton *)radiobutton {
NSLog(@"%@ is selected.\n", radiobutton.selectedButton.titleLabel.text);
if (radiobutton.isMultipleSelectionEnabled) {
for (DLRadioButton *button in radiobutton.selectedButtons) {
NSLog(@"%@ is selected.\n", button.titleLabel.text);
}
} else {
NSLog(@"%@ is selected.\n", radiobutton.selectedButton.titleLabel.text);
}
}

#pragma mark - UIViewController
Expand Down

0 comments on commit b99195d

Please sign in to comment.