I use a table view with a UISearchDisplayController in combination with a UISearchBar . The search bar automatically hides the cancel button when it is unacceptable, but I use the view controller in a modal state - so I would like to always show the cancel button and use it to display the modal view controller when the search is canceled.
Is there a way to make the cancel button remain visible without creating a custom search bar?
ios cocoa-touch
Erik aigner
source share