Skip to content

Commit

Permalink
Fixes a potential crash on iOS 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
CooperRS committed Jun 7, 2015
1 parent 130d3bb commit a172d22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ DEPENDENCIES:
SPEC CHECKSUMS:
RMActionController: cbaf3b20536c1c1be6547438b17472e488318888

COCOAPODS: 0.37.1
COCOAPODS: 0.37.2
2 changes: 1 addition & 1 deletion RMPickerViewController/RMPickerViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ + (instancetype)actionControllerWithStyle:(RMActionControllerStyle)style title:(
controller.picker = [[UIPickerView alloc] initWithFrame:CGRectZero];
controller.picker.translatesAutoresizingMaskIntoConstraints = NO;

controller.pickerHeightConstraint = [NSLayoutConstraint constraintWithItem:controller.picker attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:0 constant:0];
controller.pickerHeightConstraint = [NSLayoutConstraint constraintWithItem:controller.picker attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1 constant:0];

if(RM_CURRENT_ORIENTATION_IS_LANDSCAPE_PREDICATE) {
controller.pickerHeightConstraint.constant = RM_PICKER_HEIGHT_LANDSCAPE;
Expand Down

0 comments on commit a172d22

Please sign in to comment.