Take Photos Automatically - iPhone

天大地大妈咪最大 提交于 2019-11-30 20:24:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!