MainWindow を UIWindow でサブクラス化し、その中でヒット テスト メソッドを使用しています。
-(UIView *)hitTestCGPoint)point withEventUIEvent *)event {
UIView *hitView = [super hitTestoint withEvent:event];
if (hitView == self)
return [[self subviews] lastObject];
else if([hitView isDescendantOfView:myView])
{
NSSet *touches = [event allTouches];
for (UITouch *タッチインタッチ) {
if ([touches count] >= 2) { // この NSLog(@"Count =2") を防止します。return [[self subviews] lastObject]; ヒットビューを返します。}
しかし、私はゼロオブジェクトとして触れています。イベントをデバッグして確認したところ、オブジェクトは常に 0 です。しかし、レスポンダーはイベントの詳細を持っています。なぜそうなのか、どうすればタップ数を取得できますか?