- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
returnself.searchController.searchBar;
}
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
return 28;
}
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
return .1;
}
如果要以这种方式加载表头的话,那么表头、表尾的高度都要设置
本文介绍如何在 iOS 开发中使用 SwiftUI 框架配置 UITableView 的表头高度,包括具体的方法实现细节。
3947

被折叠的 条评论
为什么被折叠?



