From fbb3bc1c0d4a7f5fc9d19931e11440b337ae1351 Mon Sep 17 00:00:00 2001 From: CooperRS Date: Sun, 7 Jun 2015 12:20:58 +0200 Subject: [PATCH] Fixes a potential crash on iOS 8.3 --- RMDateSelectionViewController/RMDateSelectionViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RMDateSelectionViewController/RMDateSelectionViewController.m b/RMDateSelectionViewController/RMDateSelectionViewController.m index a88a39a..d20d8fd 100644 --- a/RMDateSelectionViewController/RMDateSelectionViewController.m +++ b/RMDateSelectionViewController/RMDateSelectionViewController.m @@ -59,7 +59,7 @@ + (instancetype)actionControllerWithStyle:(RMActionControllerStyle)style title:( controller.datePicker = [[UIDatePicker alloc] initWithFrame:CGRectZero]; controller.datePicker.translatesAutoresizingMaskIntoConstraints = NO; - controller.datePickerHeightConstraint = [NSLayoutConstraint constraintWithItem:controller.datePicker attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:0 constant:0]; + controller.datePickerHeightConstraint = [NSLayoutConstraint constraintWithItem:controller.datePicker attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1 constant:0]; if(RM_CURRENT_ORIENTATION_IS_LANDSCAPE_PREDICATE) { controller.datePickerHeightConstraint.constant = RM_DATE_PICKER_HEIGHT_LANDSCAPE;