# 系统搜索框 **Repository Path**: MBLee/system_search_box ## Basic Information - **Project Name**: 系统搜索框 - **Description**: 系统搜索框注意事项:1、 ios11 的适配,不然话用ios11 系统显示不出来 if (@available(iOS 11.0, *)) { self.navigationItem.searchController = self.searchController; } else { self.tableView.tableHeaderView = self.searchController.searchBar; } ##2、如果一个控制器没有父控制器,设置此属性可以让其变为根控制器;不设置此属性为yes ,显示有问题 self.definesPresentationContext = YES; - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-04-13 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 系统搜索框 系统搜索框注意事项: 1、 ios11 的适配,不然话用ios11 系统显示不出来 if (@available(iOS 11.0, *)) { self.navigationItem.searchController = self.searchController; } else { self.tableView.tableHeaderView = self.searchController.searchBar; } 2、如果一个控制器没有父控制器,设置此属性可以让其变为根控制器; 不设置此属性为yes ,显示有问题 self.definesPresentationContext = YES;