如何在iPhone 6.0模拟器中添加视频? [英] How to add videos in iPhone 6.0 simulator?

查看:148
本文介绍了如何在iPhone 6.0模拟器中添加视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 iPhone 模拟器中保存视频时遇到问题。我尝试了几个选项,比如去图书馆,但看起来并不酷。

I have problem regarding saving video in iPhone simulator. I have tried several option like going to Library,but it doesn't look cool.

我想添加它们,以便我可以在我的应用程序中选择它们。

I want to add them so that I can picked them afterwards in my app.

推荐答案

1.Drag&将视频文件拖放到模拟器上

2.按下标签栏上的操作按钮

3.保存到相机胶卷

1.Drag & drop the video file to the simulator
2.Press Action button on the tab bar
3.Save to camera roll

现在你可以选择那个视频了。

Now you can pick that video.

编辑

您应该设置mediatype 。为此

#import <MobileCoreServices/MobileCoreServices.h>

UIImagePickerController *picker = [[UIImagePickerController alloc]init];
picker.mediaTypes =[[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie,kUTTypeVideo,kUTTypeImage, nil];

这篇关于如何在iPhone 6.0模拟器中添加视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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