you can assign any view to the titleView property of the navigation item . You can do it this way .
self.navigationItem.titleView = searchBar ;
This should work out or not then adding search bar to the UIView instance and then assigning this view to self.navigationItem.titleView will do .