I have a tableview that uses a custom UITableViewCell. In the cell, I have a button that shows a custom menu controller with three menu items. I would like to push a new view controller when you click the 'See Detail' button.
I have this run when the 'See Detail' button is clicked in the custom cell
- (void)seeDetail:(UIMenuController *)controller
{
NSLog(@"See detail clicked");
parentMovers = [[ParentViewController alloc] init];
[parentMovers showStockDetail];
}
And showStockDetail is in the view controller that fills in the rows.
-(void)showStockDetail {
NSLog(@"show stock detail");
ChildViewController *childViewController = [[ChildViewController alloc] initWithNibName:@"ChildViewController" bundle:nil];
childViewController.tickerId = tickerId;
[self.navigationController pushViewController:childViewController animated:YES];
[stockDetailViewController release];
}
This doesn't show the detail view controller. I also tried to add the code in showStockDetail to -(void)seeDetail:(UIMenuController *)controller
Any ideas on how I can get this to work?