Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add videos in iPhone 6.0 simulator? [duplicate]

Tags:

ios

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.

like image 541
Ravee10 Avatar asked May 09 '13 06:05

Ravee10


People also ask

How do you add videos to iPhone simulator?

It's very simple you just drag any . MOV file to your simulator. Now it will be opened in Safari browser. At top left corner there is a 'Done' button.

How do you copy and paste in simulator?

To copy and paste from case information displays, right-click on the display and use the options in the resulting local menu. For more information see: how to use key fields, creating new records by pasting data, and the cut/paste example provided in Simulator Tips.


1 Answers

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.

Edit

You should set the mediatype of the picker to list the videos. For that

#import <MobileCoreServices/MobileCoreServices.h>  UIImagePickerController *picker = [[UIImagePickerController alloc]init]; picker.mediaTypes =[[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie,kUTTypeVideo,kUTTypeImage, nil]; 
like image 195
Anil Varghese Avatar answered Sep 21 '22 01:09

Anil Varghese