2
我想創建一個AVCaptureSession。我根據我的代碼在WWDC 2011的視頻,數字419&error error - iOS dev
我有以下的線,是完全一樣的,在WWDC 2011視頻的代碼,它也與此代碼http://www.bardecode.com/en/knowledge-base/214-detailed-description-of-work-around-for-avcapturevideopreviewlayer-problem-in-ios-41.html
// Create a device input with the device and add it to the session.
AVCaptureDeviceInput *input = [AVCaptureDeviceInput deviceInputWithDevice:device
error:&error];
但Xcode說&錯誤是使用未聲明的標識符。
謝謝。爲什麼不包含在視頻和示例代碼中? – SamB
@SamB看起來作者錯過了他們的博客 - 所提供的代碼總是會拋出你遇到的錯誤。 (我沒有看到WWDC會話視頻,所以無法發表評論 - 可能該變量是在以前的視頻中定義的,等等) –