File tree Expand file tree Collapse file tree
SIAlertViewExample/SIAlertViewExample.xcodeproj Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -703,7 +703,12 @@ - (CGFloat)heightForTitleLabel
703703{
704704 if (self.titleLabel ) {
705705 CGSize size = [self .title sizeWithFont: self .titleLabel.font
706- minFontSize: self .titleLabel.font.pointSize * self .titleLabel.minimumScaleFactor
706+ minFontSize:
707+ #ifndef __IPHONE_6_0
708+ self.titleLabel.font.pointSize * self.titleLabel.minimumScaleFactor
709+ #else
710+ self.titleLabel.minimumFontSize
711+ #endif
707712 actualFontSize: nil
708713 forWidth: CONTAINER_WIDTH - CONTENT_PADDING_LEFT * 2
709714 lineBreakMode: self .titleLabel.lineBreakMode];
@@ -768,7 +773,11 @@ - (void)updateTitleLabel
768773 self.titleLabel .font = self.titleFont ;
769774 self.titleLabel .textColor = self.titleColor ;
770775 self.titleLabel .adjustsFontSizeToFitWidth = YES ;
776+ #ifndef __IPHONE_6_0
771777 self.titleLabel .minimumScaleFactor = 0.75 ;
778+ #else
779+ self.titleLabel .minimumFontSize = self.titleLabel .font .pointSize * 0.75 ;
780+ #endif
772781 [self .containerView addSubview: self .titleLabel];
773782#if DEBUG_LAYOUT
774783 self.titleLabel .backgroundColor = [UIColor redColor ];
Original file line number Diff line number Diff line change 341341 GCC_PRECOMPILE_PREFIX_HEADER = YES;
342342 GCC_PREFIX_HEADER = "SIAlertViewExample/SIAlertViewExample-Prefix.pch";
343343 INFOPLIST_FILE = "SIAlertViewExample/SIAlertViewExample-Info.plist";
344+ IPHONEOS_DEPLOYMENT_TARGET = 5.1;
344345 PRODUCT_NAME = "$(TARGET_NAME)";
345346 WRAPPER_EXTENSION = app;
346347 };
352353 GCC_PRECOMPILE_PREFIX_HEADER = YES;
353354 GCC_PREFIX_HEADER = "SIAlertViewExample/SIAlertViewExample-Prefix.pch";
354355 INFOPLIST_FILE = "SIAlertViewExample/SIAlertViewExample-Info.plist";
356+ IPHONEOS_DEPLOYMENT_TARGET = 5.1;
355357 PRODUCT_NAME = "$(TARGET_NAME)";
356358 WRAPPER_EXTENSION = app;
357359 };
376378 7E23C69717325EAB00784CF1 /* Release */,
377379 );
378380 defaultConfigurationIsVisible = 0;
381+ defaultConfigurationName = Release;
379382 };
380383/* End XCConfigurationList section */
381384 };
You can’t perform that action at this time.
0 commit comments