Skip to content

Commit

Permalink
修复iOS8下,titleView会飘的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
自由流水 authored Nov 15, 2017
1 parent bdf5a84 commit 670eeb8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion SCNavigationMenuView/SCNavigationMenuView.m
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,13 @@ - (CGSize)sizeForFont:(UIFont *)font text:(NSString *)text

- (CGSize)intrinsicContentSize
{
return self.bounds.size;
CGSize size;
if (@available(iOS 11.0, *)) {
size = self.bounds.size;
} else {
size = [super intrinsicContentSize];
}
return size;
}

#pragma mark - UITableDataSource
Expand Down

0 comments on commit 670eeb8

Please sign in to comment.