如何经常使用iPhone拍照? [英] How can I take a photo frequently with iPhone?

查看:123
本文介绍了如何经常使用iPhone拍照?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对不起,我的可怜的英语!有什么办法自动用iPhone拍照吗?
eg。我需要在30秒内拍摄20张照片!
是可能吗?

First sorry for my poor English! Are there any ways to take a photo automatically with iPhone? eg. I need to take 20 pics in 30 sec! Is it possible? I would appreciate any ideas!!

推荐答案

我不擅长英语... ....无论什么...

I'm not good at English either.... and whatever...

如果你不会通过编写自己的应用程序来做。没有办法可以做到。

If you are not gonna do it by writing your own application. There's no way you can do that!!!

首先,你经常照片需要私人apis。这将使您的应用程序从App Store拒绝。如果没关系,请阅读以下说明。

First, taking photos frequently as you described needs private apis. That will make your app rejected from App Store. If that's okay, read the instructions below.


  1. 转储名为PhotoLibrary的私人图书馆的标题。

  2. 在XCode中设置项目。

  3. 在applicationDidFinishLaunching中添加[[PLCameraController sharedInstance] previewView]到您的UIWindow。

  4. 创建NSTimer
  5. 在计时器的回调中,运行

  1. Dump headers of a Private Library called 'PhotoLibrary'.
  2. Setup your project in XCode.
  3. Add [[PLCameraController sharedInstance] previewView] to your UIWindow, in applicationDidFinishLaunching:.
  4. Create a NSTimer, repeats every (30/20) secs.
  5. In the timer's callback, run

UIImage * image = [ [PLCameraController sharedInstance] _createPreviewImage];

UIImage *image = [[PLCameraController sharedInstance] _createPreviewImage];

然后你会每1.5秒得到一个UIImage。做任何你需要做的事情。您可能需要通过调用UIImageWriteToAlbum()将它们保存到相册。

Then you will get a UIImage every 1.5 second. Do whatever you need to do. You might need to save them to Photo Album by calling UIImageWriteToAlbum().

注意:
只拍摄低分辨率的照片。每1.5秒不可能拍摄全分辨率的照片。

Notice: This will only take photos of a low resolution. It's impossible to take full resolution photo per 1.5 second.

这篇关于如何经常使用iPhone拍照?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆