Skip to content

Commit 0b2601e

Browse files
committed
Merge pull request Sumi-Interactive#34 from levigroker/master
Fixing version comparison to be forward thinking.
2 parents d8df9f7 + 43a8248 commit 0b2601e

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)