Skip to content
Open
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
5 changes: 3 additions & 2 deletions MMPickerView/MMPickerView.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ -(void)initializePickerViewInView: (UIView *)view
[self addSubview:_pickerViewContainerView];

//PickerView Container with top bar
_pickerContainerView = [[UIView alloc] initWithFrame:CGRectMake(0.0, _pickerViewContainerView.bounds.size.height - 260.0, 320.0, 260.0)];
CGFloat winWidth = view.bounds.size.width;
_pickerContainerView = [[UIView alloc] initWithFrame:CGRectMake(0.0, _pickerViewContainerView.bounds.size.height - 260.0, winWidth, 260.0)];

//Default Color Values (if colors == nil)

Expand Down Expand Up @@ -273,7 +274,7 @@ -(void)initializePickerViewInView: (UIView *)view
*/

//Add pickerView
_pickerView = [[UIPickerView alloc] initWithFrame:CGRectMake(0.0, 44.0, 320.0, 216.0)];
_pickerView = [[UIPickerView alloc] initWithFrame:CGRectMake(0.0, 44.0, winWidth, 216.0)];
[_pickerView setDelegate:self];
[_pickerView setDataSource:self];
[_pickerView setShowsSelectionIndicator: _pickerViewShowsSelectionIndicator];//YES];
Expand Down