Closed skuske closed 5 years ago
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.
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;
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)