I have a UIScrollView with an Image subView. I subclass touchesEnded
to add a dialog box as a subView as follows:
- (void) pushInfoBox {
// the following line is referred to "myVC Caller" below
myViewController *myVC = [[myViewController alloc]
initWithNibName:@"myView" bundle:nil];
[self addSubview:myVC.view];
[myVC release];
}
The view shows correctly, but when I click myVC.view.backButton the code execution jumps to the "myVC Caller" line above. The next step dumps with -[myViewController performSelector:withObject:withObject:]: message sent to deallocated instance
.
Strangely the myCaller.IBAction (backButton action) is not executed.
I expect the user interaction enabled between the scrollview and the pushed message box interfere with each other, but am unsure how to handle this correctly.
any ideas on how to tackle this?