views:

61

answers:

1

Hi there.

I can't seem to push a UITableViewController onto a UIViewController using the following code:

[self.navigationController pushViewController:cardsViewController animated:YES];

The following code works for modally presenting the same view:

[self presentModalViewController:cardsViewController animated:YES];

Does anyone know what I might be doing wrong here?

Thanks in advance. Ricky.

A: 

Ricky,

Try this code:

if(self.navigationController == nil) NSLog(@"I am nil");

It will display "I am nil" in the console.

Louis Cremen
Sorry all. I didn't load my table view controller as the navigation's root controller properly. Ricky.
Ricky D'Amelio