首页 > 其他 > 详细

UIImagePickerController相册选择视频

时间:2014-06-27 23:32:54      阅读:435      评论:0      收藏:0      [点我收藏+]

UIImagePickerController *picker = [[UIImagePickerController alloc] init];

    //资源类型为视频库

    NSString *requiredMediaType1 = ( NSString *)kUTTypeMovie;

    picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

    //UIImagePickerControllerSourceTypeSavedPhotosAlbum

    NSArray *arrMediaTypes=[NSArray arrayWithObjects:requiredMediaType1,nil];

    [picker setMediaTypes: arrMediaTypes];

    picker.delegate = (id<UIImagePickerControllerDelegate,UINavigationControllerDelegate>) controller;

[self presentViewController:picker animated:animated completion:completion];

    [picker release];

UIImagePickerController相册选择视频,布布扣,bubuko.com

UIImagePickerController相册选择视频

原文:http://blog.csdn.net/dengmeiyu/article/details/35273931

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!