CB-6360: Fix for crash on iOS < 6.0 (closes #37)

This commit is contained in:
Robin North 2014-04-09 16:48:00 +01:00 committed by Shazron Abdullah
parent 1c32236353
commit 932f078e2d

View File

@ -552,7 +552,11 @@
self.addressLabel.enabled = YES;
self.addressLabel.hidden = NO;
self.addressLabel.lineBreakMode = NSLineBreakByTruncatingTail;
self.addressLabel.minimumScaleFactor = 10.000;
if (IsAtLeastiOSVersion(@"6.0")) {
self.addressLabel.minimumScaleFactor = 10.0/[UIFont labelFontSize];
} else {
self.addressLabel.minimumFontSize = 10.000;
}
self.addressLabel.multipleTouchEnabled = NO;
self.addressLabel.numberOfLines = 1;
self.addressLabel.opaque = NO;