当我的相机使用 OpenCV 检测到人脸时,我试图触发 AlertView。我设法进行面部检测并且可以成功输出 NSLog。但是当我试图触发警报视图时
NSLog(@"Face Detected");
UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:@"Face Detected" message:@"Do you really want to try again?" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:nil] autorelease];
[alert addButtonWithTitle:@"Yes"];
[alert show];
[alert release];
我可以看到警报视图在屏幕变暗时被触发,但我永远看不到警报视图出现...
感谢您的帮助!