Tencent / QMUI_iOS

QMUI iOS——致力于提高项目 UI 开发效率的解决方案
http://qmuiteam.com/ios
Other
7.08k stars 1.38k forks source link

UISearchController 不能覆盖状态栏 #1239

Closed Goallying closed 3 years ago

Goallying commented 3 years ago

// self.edgesForExtendedLayout = UIRectEdgeTop ;

[self.view addSubview:self.tableView];

self.mySearchController = [[QMUISearchController alloc] initWithContentsViewController:self];
self.mySearchController.searchResultsDelegate = self;

// self.mySearchController.launchView = [[QDRecentSearchView alloc] init];// launchView 会自动布局,无需处理 frame self.mySearchController.searchBar.qmui_usedAsTableHeaderView = YES;// 以 tableHeaderView 的方式使用 searchBar 的话,将其置为 YES,以辅助兼容一些系统 bug self.tableView.tableHeaderView = self.mySearchController.searchBar;

[self.mySearchController.tableView registerNib:[UINib nibWithNibName:@"PatientCell" bundle:nil] forCellReuseIdentifier:@"idr"];

}

MoLice commented 3 years ago

610

Goallying commented 3 years ago

610

610

我看到了那个回答 但是我没有设置我edgesForExtendedLayout 。

Goallying commented 3 years ago

iOS 14 系统