Skip to content

Commit

Permalink
Possible solution for backward compatibility with iOS v10.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Teles committed May 30, 2018
1 parent 5e31c23 commit 8a5a0e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modal-datetimepicker.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export class ModalDatetimepicker {
);

titleLabel.transform = CGAffineTransformMakeScale(0.8, 0.8);
titleLabel.adjustsFontForContentSizeCategory = true;
titleLabel.respondsToSelector("adjustsFontForContentSizeCategory") ? titleLabel.adjustsFontForContentSizeCategory = true : null;
titleLabel.adjustsFontSizeToFitWidth = true;
titleLabel.layer.masksToBounds = false;
titleLabel.alpha = 0;
Expand Down

0 comments on commit 8a5a0e9

Please sign in to comment.