+7  A: 

Your object (TableViewController) has no property named jokeTableView.

In order to access jokeTableView with the special dot operator, it needs to be a property. Otherwise you have to access it using Key-Value-Coding compliant methods or directly using the -> operator (or just use it as an ivar and no reference to self):

jokeTableView.delegate = self;

or

self->jokeTableView.delegate = self;

or

[self jokeTableView].delegate = self;

or

@property (retain) UITableView *jokeTableView;
// later...
self.jokeTableView.delegate = self;

Also note, however, that you are setting an outlet in the initializer and this won't work. You'll have to set this in the -[TableViewController awakeFromNib] method since self->jokeTableView will be nil when the initializer is actually called (which happens in IB prior to serializing the object into the nib file).

Jason Coco
Hey jason. lol this has to be about the 3rd time you've helped me this week! thanks man!Ok I added my header file... The thing is, I DO state what jokeTableView is...
Daniel Kindler
I see that now, I updated my answer accordingly :)
Jason Coco
Why do you want me to change it to "self.jokeTableView.delegate = self;" if it was already that?
Daniel Kindler
And I initialized jokeTableView in awakeFromNib, but now the take view is just blank... It doesn't even display the rows...
Daniel Kindler
The point of his fourth option is that if you want your current (property) syntax to work you could actually declare it as a propert--as the line just above it shows.
smorgan
Oh ok i get it. But then why after I did that, and I initialized with AwakeFromNib, did my tableView not show up?
Daniel Kindler
If this view is in a nib, why not just set the delegate property there? Isn't UITableView's delegate property an outlet?
Peter Hosey
well it is already a delegate... But thats what apples code said to do.. Should I not do that?
Daniel Kindler
http://stackoverflow.com/questions/870627/cocoa-why-is-my-table-view-blank
Daniel Kindler
A: 

Since you are doing this at init time, the outlets should be NULL, so this initialization shouldn't do anything. This should be done at awakeFromNib time at the earliest.

Mark Thalman