views:

11

answers:

1

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?

A: 

Try

self.title = @"Countries";
John N