Skip to content

Commit 97aadb9

Browse files
Ignacio Romero ZurbuchenIgnacio Romero
authored andcommitted
Disables cellLayoutMarginsFollowReadableWidth on iOS 9 for the auto-completion view
1 parent 272af20 commit 97aadb9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Source/Classes/SLKTextViewController.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,12 @@ - (UITableView *)autoCompletionView
283283
_autoCompletionView.dataSource = self;
284284
_autoCompletionView.delegate = self;
285285

286+
#ifdef __IPHONE_9_0
287+
if ([_autoCompletionView respondsToSelector:@selector(cellLayoutMarginsFollowReadableWidth)]) {
288+
_autoCompletionView.cellLayoutMarginsFollowReadableWidth = NO;
289+
}
290+
#endif
291+
286292
CGRect rect = CGRectZero;
287293
rect.size = CGSizeMake(CGRectGetWidth(self.view.frame), 0.5);
288294

0 commit comments

Comments
 (0)