We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe0c316 commit e928fbcCopy full SHA for e928fbc
HMSegmentedControl/HMSegmentedControl.m
@@ -267,7 +267,7 @@ - (void)updateSegmentsRects {
267
if (self.isScrollEnabled) {
268
if (self.type == HMSegmentedControlTypeText) {
269
for (NSString *titleString in self.sectionTitles) {
270
-#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_7_0
+#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000
271
CGFloat stringWidth = [titleString sizeWithAttributes:@{NSFontAttributeName: self.font}].width + self.segmentEdgeInset.left + self.segmentEdgeInset.right;
272
#else
273
CGFloat stringWidth = [titleString sizeWithFont:self.font].width + self.segmentEdgeInset.left + self.segmentEdgeInset.right;
0 commit comments