27

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.

Dariusz
  • 21,561
  • 9
  • 74
  • 114
Ravee10
  • 355
  • 1
  • 3
  • 13

2 Answers2

78

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];
Anil Varghese
  • 42,757
  • 9
  • 93
  • 110
0

There are two ways

  1. download the video via web services
  2. just paste the video on that path /Users/Apple/Library/Application Support/iPhone Simulator/6.0/Media/DCIM/
Prabhjot Singh Gogana
  • 1,408
  • 1
  • 14
  • 39