如何获得物业的价值"运行" AVCaptureSession?

时间:2015-03-26 00:00:07

标签: objective-c macos avcapturesession

根据AVCaptureSession(https://developer.apple.com/library/mac/documentation/AVFoundation/Reference/AVCaptureSession_Class/index.html#//apple_ref/occ/instp/AVCaptureSession/running)的文档,有属性“正在运行”?如何输出其价值?任何一段代码都是受欢迎的,因为我正在寻找Mac OS X代码的例子。

1 个答案:

答案 0 :(得分:0)

最后,我找到了方法:

AVCaptureSession *captureSession = [[AVCaptureSession alloc] init]; 
... 
NSLog(@"Its value is: %@", (captureSession.running) ? @"YES" : @"NO");