Skip to content

Commit

Permalink
Merge branch 'venj-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
skywinder committed Feb 9, 2015
1 parent 46d57bd commit d4d939e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Pickers/ActionSheetCustomPicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ - (UIView *)configuredPickerView
NSInteger row = [(NSNumber *) self.initialSelections[i] integerValue];
NSAssert([pv numberOfRowsInComponent:i] > row, @"Number of sections not match");
[pv selectRow:row inComponent:i animated:NO];

// Strangely, the above selectRow:inComponent:animated: will not call
// pickerView:didSelectRow:inComponent: automatically, so we manually call it.
[pv reloadAllComponents];
}

}
Expand Down

0 comments on commit d4d939e

Please sign in to comment.