I have a TableView with a CustomCell . In the CustomCell is a UIImage with "setUserInteractionEnabled" ...
The TableView is into a NavigationController... a normal didSelect with a push to a new view works fine..
i make this in the customcell for the UIImage:
- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [[event allTouches] anyObject];
CGPoint location = [touch locationInView:touch.view];
if (touch.view.tag > 0) {
DetailViewController *DetailController= [DetailViewController alloc];
NSLog(@"tag=%@", [NSString stringWithFormat:@"%i", touch.view.tag]);
[DetailController gogo:@"99"];
}
}
The DetailController is the NavigationController with the UITable an CustomCell.
In "gogo" i make this:
- (void)gogo:(NSString*)tag
{
NSLog(@"GOGO");
DataMainController *cdController = [[[DataMainController alloc] initWithNibName:@"ReDataMain" bundle:nil] autorelease];
[self.navigationController pushViewController:cdController animated:YES];
//[cdController release];
}
But i makes nothing.
Has any one a idea? Thanks