I have a UITabBar controller that manages multiple controllers (using SDK 3.0). One of them is the tableView controller, and I need to provide a search option using the UISearchDisplayController. All my code is based on the example of Apple TableSearch. However, when you click on the tab, the tableView controller is displayed with the related content, but the searchBar is not displayed. I checked xib in IB to make sure all outputs are set correctly, but no matter what I try to execute self.searchDisplayController is always zero and the search bar does not appear.
In practice, I replicated MainView.xib from the TableSearch example and set the file owner class to the correct controller class for the tab. The outputs are sets, as in the MainView.xib example. Am I missing any important step or is something wrong?
Thanks in advance.
iphone uisearchbar uisearchdisplaycontroller
Massimo cafafo
source share