Skip to content

Conversation

@skuske
Copy link
Contributor

@skuske skuske commented Oct 31, 2019

Added 'leftButtonIsDoneButton', 'hideLeftBtn' and 'hideRightBtn' properties:

1.) 'leftButtonIsDoneButton' makes the left button the 'Done' button, and the right button the 'Cancel' button
2.) 'hideLeftBtn' hides the left button
3.) 'hideRightBtn' hides the right button

:o)

Added 'leftButtonIsDoneButton', 'hideLeftBtn' and 'hideRightBtn' properties
Added 'leftButtonIsDoneButton', 'hideLeftBtn' and 'hideRightBtn' properties
Added 'leftButtonIsDoneButton', 'hideLeftBtn' and 'hideRightBtn' properties
Added 'leftButtonIsDoneButton', 'hideLeftBtn' and 'hideRightBtn' properties
@skuske
Copy link
Contributor Author

skuske commented Nov 1, 2019

Hiding the two buttons is helpful if you have isAutoSelect set to YES, as then there's no need for the buttons as long as a selection happens.

@agiapp
Copy link
Owner

agiapp commented Nov 1, 2019

This problem has been solved. Please update version 2.3.8. Thanks! :o)

// custom style
BRPickerStyle *customStyle = [[BRPickerStyle alloc]init];
customStyle.doneBtnTitle = @"Ok";
customStyle.doneBtnFrame = CGRectMake(5, 8, 60, 28);
customStyle.doneColor = [UIColor redColor];
//customStyle.hiddenDoneBtn = YES;

customStyle.cancelBtnTitle = @"Custom title";
customStyle.cancelBtnFrame = CGRectMake(SCREEN_WIDTH - 100 - 5, 8, 100, 28);
customStyle.cancelColor = [UIColor blueColor];
//customStyle.hiddenCancelBtn = YES;

stringPickerView.pickerStyle = customStyle;

@skuske skuske closed this Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants