I\'ve added a UISearchController to my application and set it\'s searchBar to the titleView of my navigationItem.
This works but I am seeing t
my solution was to set the attribute every time anew when I used the searchcontroller respectively its searchbar. I initialized the searchcontroller lazily without setting the attribute and then did
searchController.searchBar.showsCancelButton = false
every time before search began. You could do this in the UISearchControllerDelegate methods i.e...