我當前的代碼是這樣的:如何檢測ARKit的座標視圖中的觸摸?
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];
但我沒有收到上的按鈕任何接觸。任何想法?
我現在有同樣的問題,你有沒有找到解決辦法? –