0
我需要一些关于此问题的帮助。当用户在uisearchbar上点击时禁用键盘弹出
我想禁用键盘弹出当用户在我的应用程序中的搜索栏上点击。任何人都有如何做到这一点的想法?如果可以在应用程序中完全禁用键盘会更好。
我正在开发iOS应用程序的swift这个应用程序。
let searchController: UISearchController!
self.searchController = UISearchController(searchResultsController: nil)
self.searchController.searchResultsUpdater = self
self.searchController.dimsBackgroundDuringPresentation = false
self.searchController.searchBar.sizeToFit()
self.searchController.searchBar.placeholder = "Search"
非常感谢。它按我想要的那样工作。 –
你可以选择以不同的方式感谢我。 –