【发布时间】:2010-07-13 18:00:11
【问题描述】:
这个问题是以下问题的后续:
UITouch - Event not responding
我做了更多的研究,我知道问题是什么,但我不知道如何解决它,甚至不知道它是否可以解决。我可能不得不采取新的方法。
我有一个 RootViewController,然后我使用以下代码加载第二个 ViewController:
[self presentModalViewController:newWorkoutViewController animated:YES];
然后我在 NewWorkoutViewController 中有以下代码:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
NSLog(@"New Workout Screen tapped");
}
这个方法没有被执行,我认为这是因为它是一个模态视图。无论如何在模态视图中检测屏幕上的点击。
谢谢 斯蒂芬
【问题讨论】:
标签: iphone xcode modalviewcontroller touchesbegan