Cocoa Touch - setting text of header of UITableView
Posted
by Mark
on Stack Overflow
See other posts from Stack Overflow
or by Mark
Published on 2010-06-17T01:48:54Z
Indexed on
2010/06/17
1:52 UTC
Read the original article
Hit count: 329
cocoa-touch
|uitableview
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?
© Stack Overflow or respective owner