Hey everbody, im getting a curious problem here. Im trying to make my table push another view, called ‘productviewcontroller’.
Im importing both ‘productviewcontroller’ and ‘myappviewcontroller’ on header.
#import "SearchViewController.h"
#import "MyAppViewController.h"
#import "TBXML.h"
#import "ProductViewController.h"
And im setting my table to push the another view.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
ProductViewController *productViewController = [[ProductViewController alloc] initWithNibName:@"ProductViewController" bundle:[NSBundle mainBundle]];
[self.navigationController pushViewController:productViewController animated:YES];
[productViewController release];
NSLog(@"Test.");
}
When i selects the cell, it gives me the message ‘test’. But dont push the another view.
Im setting the navigationController on app delegate.
What im doing wrong?
Thanks!
It looks right. Does the ProductView nib include a navigation controller?