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 6cb6eb4 commit fbb3bc1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fbb3bc1

Please # to comment.