I have a UICollectionView . When I click the search button in the UINavigationBar I add the UISearchController searchbar as the title for the UINavigationItem . For iPhone, it works correctly. For iPad, the cancel button is not displayed. Only the search bar accepts the entire width.

Can someone help me with this? Thanks in advance.
ios objective-c uisearchbar uisearchcontroller
Sheik_101 May 27 '15 at 6:15 2015-05-27 06:15
source share