Skip to content

Commit 43a8248

Browse files
author
Levi Brown
committed
Fixing version comparison to be forward thinking.
Adding a specific check for the deployment target to be equal to or greater than iOS 6, when minimumScaleFactor is available, in such a way to support deployment targets higher than 6.x. Signed-off-by: Levi Brown <[email protected]>
1 parent d8df9f7 commit 43a8248

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SIAlertView/SIAlertView.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ - (CGFloat)heightForTitleLabel
733733
if (self.titleLabel) {
734734
CGSize size = [self.title sizeWithFont:self.titleLabel.font
735735
minFontSize:
736-
#ifndef __IPHONE_6_0
736+
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_6_0
737737
self.titleLabel.font.pointSize * self.titleLabel.minimumScaleFactor
738738
#else
739739
self.titleLabel.minimumFontSize
@@ -803,7 +803,7 @@ - (void)updateTitleLabel
803803
self.titleLabel.font = self.titleFont;
804804
self.titleLabel.textColor = self.titleColor;
805805
self.titleLabel.adjustsFontSizeToFitWidth = YES;
806-
#ifndef __IPHONE_6_0
806+
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_6_0
807807
self.titleLabel.minimumScaleFactor = 0.75;
808808
#else
809809
self.titleLabel.minimumFontSize = self.titleLabel.font.pointSize * 0.75;

0 commit comments

Comments
 (0)