UISearchbar issue

Posted by hmthur on Stack Overflow See other posts from Stack Overflow or by hmthur
Published on 2010-12-22T16:41:04Z Indexed on 2010/12/22 16:53 UTC
Read the original article Hit count: 226

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.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c