diff --git a/Podfile.lock b/Podfile.lock index 80c853f..fb63fd4 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -7,4 +7,4 @@ DEPENDENCIES: SPEC CHECKSUMS: RMActionController: cbaf3b20536c1c1be6547438b17472e488318888 -COCOAPODS: 0.37.1 +COCOAPODS: 0.37.2 diff --git a/RMPickerViewController/RMPickerViewController.m b/RMPickerViewController/RMPickerViewController.m index 975948f..63992c6 100644 --- a/RMPickerViewController/RMPickerViewController.m +++ b/RMPickerViewController/RMPickerViewController.m @@ -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;