iOS SDK4.0 AVFoundation !
-
28-09-2019 - |
Pergunta
I've added AVFoundation.framework I've written "#import " at the top of the file.
I've used the class AVCaptureSession AVCaptureDevice AVCaptureDeviceInput... in my code.
But when I build it,Xcode told me the errors that "AVCaptureSession undeclared" "AVCaptureDevice undeclared" ...
What's wrong with it? What should I do for it?
Thank you very much!
Solução
Do you built it for simulator? If so, try to build for device, these classes will not compile for simulator.
Outras dicas
add the import
#import <AVFoundation/AVFoundation.h>
in the header file ! and youre ready to go within the Simulator
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow