私の現在のコードは次のような次のとおりです。ARKitのcoordinateViewでタッチを検出するにはどうすればよいですか?
UIButton *testButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
testButton.frame = CGRectMake(0, 0, 100, 100);
[testButton setTitle:@"HELLOHELLOHELLO" forState:UIControlStateNormal];
[testButton addTarget:self action:@selector(pushPhoneDetailController:) forControlEvents:UIControlEventTouchUpInside];
testButton.tag = toPutTag;
[tempView addSubview:testButton];
しかし、私は、ボタン上の任意のタッチを受信していません。何か案が?
私は今同じ問題を抱えていますが、解決策を見つけましたか? –