iOS 9'da UISearchController kullanıyorum ve arama çubuğunu bir UIViewController içinde görüntülüyorum, arama çubuğuna ilk tıklıyorum ve düşündüğüm her şeyi denedim çok fazla gecikme yaşıyorum hiçbir boşuna ... aşağıda benim gecikme bir video için bir bağlantı ile birlikte benim kodum - gecikme hem simülatör hem de cihazımda olur. http://sendvid.com/xgq81stxUISearchController arama çubuğu animasyonu çok yavaş ilk defa
Teşekkür:
İştefunc setupUI() {
self.view.backgroundColor = UIColor.whiteColor()
// Required to properly display searchbar within nav & tabbar controllers
self.extendedLayoutIncludesOpaqueBars = true // have tried setting this to false as well
self.definesPresentationContext = true
self.searchResultsController = AppDelegate.getViewController(ScheduleStoryboard.name, controllerName: ScheduleStoryboard.Identifiers.foodSearchResults) as? SearchResultsController
self.searchController = UISearchController(searchResultsController: searchResultsController)
self.searchController.searchResultsUpdater = self
self.searchController.delegate = self
self.searchController.dimsBackgroundDuringPresentation = true
self.searchController.searchBar.delegate = self
self.searchController.searchBar.placeholder = "Search foods..."
self.searchController.searchBar.setBackgroundImage(UIImage(named: "background-searchbar")?.resizableImageWithCapInsets(UIEdgeInsetsMake(0, 0, 0, 0)), forBarPosition: .Any, barMetrics: .Default)
self.searchController.searchBar.tintColor = UIColor.whiteColor()
self.searchController.searchBar.sizeToFit()
// this headerView does NOT belong to the tableView, its anchored on top of the tableView so that the searchbar remains fixed when scrolling
self.headerView.addSubview(searchController.searchBar)
self.tableView.delegate = self
self.tableView.dataSource = self
self.tableView.tableHeaderView?.backgroundColor = UIColor.clearColor()
self.tableView.tableHeaderView?.addBorder(.Bottom, color: UIColor.groupTableViewBackgroundColor(), width: 0.25)
self.segmentedControl.tintColor = UIColor.genioBlue()
}
oluyor whats gösteren videonun bağlantısı olduğunu!
Bunun için geçici bir çözüm bulmak mümkün gittiniz umut
: İşte benim uygulamasıdır? Ben de aynı sorunla karşılaşıyorum –
hayır maalesef:/ – narciero
benim için de aynı sorun. Ben de bir çözüm bulamadım. –