Skip to content

Commit e928fbc

Browse files
committed
Fixing issue when building with SDKs prior to 7
1 parent fe0c316 commit e928fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HMSegmentedControl/HMSegmentedControl.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ - (void)updateSegmentsRects {
267267
if (self.isScrollEnabled) {
268268
if (self.type == HMSegmentedControlTypeText) {
269269
for (NSString *titleString in self.sectionTitles) {
270-
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_7_0
270+
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000
271271
CGFloat stringWidth = [titleString sizeWithAttributes:@{NSFontAttributeName: self.font}].width + self.segmentEdgeInset.left + self.segmentEdgeInset.right;
272272
#else
273273
CGFloat stringWidth = [titleString sizeWithFont:self.font].width + self.segmentEdgeInset.left + self.segmentEdgeInset.right;

0 commit comments

Comments
 (0)