Cocoa Touch - setting text of header of UITableView
- by Mark
Hey all,
I'm trying to set the title of the header of my entire UITableView, but am having no success.
For example, on this webpage:
http://www.iphonesdkarticles.com/2009/01/uitableview-sectioned-table-view.html
I am trying to replicate creating the "Countries" header programmatically. I have a UITableView that works and displays data. When I insert the following line:
self.navigationItem.title = @"Countries";
In my viewDidLoad method, nothing happens. Thoughts?