I try this :
UIImagePickerController *videoPicker = [[UIImagePickerController alloc] init];
videoPicker.delegate = self;
videoPicker.modalPresentationStyle = UIModalPresentationCurrentContext;
videoPicker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
videoPicker.mediaTypes = @[(NSString*)kUTTypeMovie, (NSString*)kUTTypeAVIMovie, (NSString*)kUTTypeVideo, (NSString*)kUTTypeMPEG4];
videoPicker.videoQuality = UIImagePickerControllerQualityTypeHigh;
[self presentViewController:videoPicker animated:YES completion:nil];
but it only show videos from photos part not all video in camera roll. I want to pick all video from Camera roll. Please help me by giving some clue or code. Thanks in advance!
Please use the following code to select video from iOS gallery
Please have a look at this link Select video from gallery
Here is a compilation and cleanup of the answer above plus a few more details.
(0) Ensure you have these two includes.
(1) Add two delegates to your .h file: UINavigationControllerDelegate and UIImagePickerControllerDelegate. For us, it looked like this:
(2) Present the user with choice of videos from their library. Add this code to your .m file somewhere.
(3) Handle the responses from the picker. Add this code to your delegate class.
(4) Handle when the user cancels choosing anything.