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
I agree, it seems like a bug. The problem is that the searchController keeps resetting the showsCancelButton property of the searchBar. I found a solution that involves:
UISearchBar to ignore setShowsCancelButton.UISearchController.Convoluted, but it seems to do the trick. You can find the full answer here.