views:

220

answers:

1

I cant get my views to switch!

In SettingsViewController.M <-- UITableViewController: loaded from a tabbar. My original application is a tabbar+navigationcontroller. What do I need to push it to cuz navigationcontroller won't work

 CompanyProfileViewController *profile = [[CompanyProfileViewController alloc] initWithNibName:@"CompanyProfileView" bundle:nil];
 [self.navigationController pushViewController:profile animated:YES];

CompanyProfileViewController <-- UITableViewController

I originally wanted this to have a header/footer and tableview, not sure how to set this up, butevery time I try to push to it, it does nothing

+1  A: 

are you sure that (1) the navigation controller is not nil, and (2) that the navigation controller's view is actually a subview of whatever view you have on screen?

newacct