问题
I'm trying to perform the task of taking a picture, but triggered by code instead of relying on the touching of the camera button in UIImagePickerController. Can this be done? I want to take a 10 pictures, 1 per second.
回答1:
You should look into the AVFoundation framework -- that makes it pretty easy to do.
回答2:
As answered here, check out Apple's AVCam sample. It shows how to get both still images and video from the camera.
来源:https://stackoverflow.com/questions/4966134/take-photos-automatically-iphone