UISearchController searchBar文本重叠内容

时间:2017-10-25 07:16:16

标签: ios objective-c uisearchcontroller

我需要一些帮助解决这个问题:

enter image description here

这是我目前的代码:

_searchController = [[UISearchController alloc] initWithSearchResultsController:nil];
_searchController.delegate = self;
_searchController.searchResultsUpdater = self;
_searchController.dimsBackgroundDuringPresentation = NO;
_searchController.searchBar.showsCancelButton = NO;
_searchController.searchBar.delegate = self;
_searchController.searchBar.searchTextPositionAdjustment = UIOffsetMake(20.0, 0.0);
self.definesPresentationContext = YES;

你们有没有遇到过同样的事情?

0 个答案:

没有答案