Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/121.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在iOS中将一系列图像转换为电影?_Ios_Cocoa Touch - Fatal编程技术网

如何在iOS中将一系列图像转换为电影?

如何在iOS中将一系列图像转换为电影?,ios,cocoa-touch,Ios,Cocoa Touch,谁能告诉我如何将一系列图像转换为电影,我想将其存储在相机角色中。我们可以使用图像动画。 下面是示例代码 CGRect myImageRect = CGRectMake(0.0f, 0.0f, 768, 1024); UIImageView *myAnimatedView = [UIImageView alloc]; [myAnimatedView initWithFrame:myImageRect]; myAnimatedView.animationImages =a

谁能告诉我如何将一系列图像转换为电影,我想将其存储在相机角色中。我们可以使用图像动画。 下面是示例代码

  CGRect myImageRect = CGRectMake(0.0f, 0.0f, 768, 1024);  
  UIImageView *myAnimatedView = [UIImageView alloc]; 
   [myAnimatedView initWithFrame:myImageRect];
    myAnimatedView.animationImages =appDelegate.imageArray; 
    myAnimatedView.animationDuration =  15.0; 
    myAnimatedView.animationRepeatCount = 0; 
    [myAnimatedView startAnimating];``
现在我想把这个图像动画转换成一部电影,我想保存在里面 作为电影的ipad相机卷(快速电影)


谢谢

您需要学习和使用FFMpeg库。

这可以通过AVFoundation框架完成。例如,查看此帖子:

据我所知,在app store上发布时,使用FFMpeg库将是一个问题