From a172d229fda8e0a5413f90ab2da7cbccfa1c4189 Mon Sep 17 00:00:00 2001 From: CooperRS Date: Sun, 7 Jun 2015 12:18:34 +0200 Subject: [PATCH] Fixes a potential crash on iOS 8.3 --- Podfile.lock | 2 +- RMPickerViewController/RMPickerViewController.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;