Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BSModalPickerView/BSModalPickerBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#define BSMODALPICKER_PANEL_HEIGHT 260
#define BSMODALPICKER_TOOLBAR_HEIGHT 44
#define BSMODALPICKER_BACKDROP_OPACITY 0.8
#define BSMODALPICKER_BACKDROP_OPACITY 0.4

#import <UIKit/UIKit.h>

Expand Down
1 change: 1 addition & 0 deletions BSModalPickerView/BSModalPickerBase.m
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ - (void)presentInView:(UIView *)view withBlock:(BSModalPickerViewCallback)callba
CGRect rect = self.picker.frame;
rect.size.width = self.panel.frame.size.width;
self.picker.frame = rect;
self.picker.backgroundColor = [UIColor whiteColor];
[self.panel addSubview:self.picker];
[self.panel addSubview:self.toolbar];

Expand Down
1 change: 1 addition & 0 deletions BSModalPickerView/BSModalPickerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ - (void)setValues:(NSArray *)values {
}

- (void)setSelectedIndex:(NSUInteger)selectedIndex {
self.indexSelectedBeforeDismissal = selectedIndex;
if (_selectedIndex != selectedIndex) {
_selectedIndex = selectedIndex;
if (self.picker) {
Expand Down