Skip to content

Commit

Permalink
Fixed #137 which @available compile failed in Xcode 7
Browse files Browse the repository at this point in the history
Fixed #137 which `@available`  compile failed in Xcode 7
  • Loading branch information
ko1o committed Nov 24, 2017
1 parent dfe0c6f commit 52ef977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PYSearch/PYSearchSuggestionViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ - (void)setSearchSuggestions:(NSArray<NSString *> *)searchSuggestions
}
self.tableView.contentOffset = CGPointMake(0, -self.tableView.contentInset.top);

if (@available(iOS 11.0, *)) {
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 11.0) { // iOS 11
self.tableView.contentInset = UIEdgeInsetsMake(-30, 0, 0, 0);
}
}
Expand Down

0 comments on commit 52ef977

Please sign in to comment.