I'm trying to find an alternative to displaysSearchBarInNavigationBar for iOs8, is there anything I can use (in swift)?
I tried self.navigationItem.titleView = resultSearchController.searchBar but it doesn't do anything.
I don't understand how to find the replacement for functions that are deprecated, on the apple documentation it just say deprecated with no alternative, if you have any tips it would be greatly appreciated.
 
                        
You can put an
UISearchBarin aUINavigationBarwithout using aUINavigationControllerwithout problem, but you have to do a minor change only, first you need to define an@IBOutletto theUINavigationIteminside yourUINavigationBarbut its name need to be different from thenavigationItemproperty defined in all theUIViewControllerclass, see the following code:And then you can see something like this in your simulator:
I hope this help you.