Skip to content

Commit

Permalink
Merge pull request #108 from venj/master
Browse files Browse the repository at this point in the history
Fixed an issue when more than one ActionSheetCustomPicker is used in a ViewController
  • Loading branch information
skywinder committed Dec 9, 2014
2 parents 3b2358e + 52a5bf9 commit 3bd3203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pickers/ActionSheetCustomPicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ - (UIView *)configuredPickerView
{
CGRect pickerFrame = CGRectMake(0, 40, self.viewSize.width, 216);
UIPickerView *pv = [[UIPickerView alloc] initWithFrame:pickerFrame];
self.pickerView = pv;

// Default to our delegate being the picker's delegate and datasource
pv.delegate = _delegate;
Expand All @@ -90,7 +91,6 @@ - (UIView *)configuredPickerView
{
[_delegate actionSheetPicker:self configurePickerView:pv];
}
self.pickerView = pv;
return pv;
}

Expand Down

0 comments on commit 3bd3203

Please sign in to comment.