Код: Выделить всё
navigationBar.prefersLargeTitles = true
navigationItem.largeTitleDisplayMode = .automatic
Код: Выделить всё
private func setupSearchController() {
searchResultsController = SearchResultsController()
searchController = UISearchController(searchResultsController: searchResultsController)
searchController?.searchResultsUpdater = searchResultsController
searchController?.obscuresBackgroundDuringPresentation = true
searchController?.searchBar.tintColor = R.color.primaryText()
navigationItem.searchController = searchController
navigationItem.hidesSearchBarWhenScrolling = false
definesPresentationContext = true
}
Код: Выделить всё
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
return UITableViewCell()
}
Похоже, что добавление чего-то в UITableView заставляет его прокручиваться.
Как я могу предотвратить свертывание UINavigationBar при запустить?
Подробнее здесь: https://stackoverflow.com/questions/793 ... -not-empty
Мобильная версия