UISearchbar issue
- by hmthur
I am trying to add a UISearchbar to table header view.
I have the icon in nib and have connected the outlets.
Now in viewDidLoad, I am writing
self.tableView.tableHeaderView = searchbar
If i create a local var inside viewDidLoad, it shows up. But not the outlet or ivar one.
But for some reason, the UISearchbar does not get displayed in the table.
I am not sure what the issue is. Can a UISearchbar not be set in viewDidLoad
OR is it something else?
Please help.