I am using following code to choose image from camera role
picker= [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
//picker.sourceType = UIImagePickerControllerSourc
//[self addSubview:imagePickerController.view];
[self presentModalViewController:picker animated:YES];
but this shows only images , but i want to show all videos present in camera role ,
how can I do this?
If you’re just wanting to allow UIImagePickerController to select videos instead of photos, it’s easy: just assign an array containing kUTTypeMovie to the picker’s
mediaTypesproperty:If you want videos and photos, include both kUTTypeMovie and kUTTypeImage:
If you want to actually retrieve these movies, and you’re targeting iOS 4.0 and above, you can use ALAssetsLibrary to get the list without user intervention.