码迷,mamicode.com
首页 > 其他好文 > 详细

UIImagePickerController相册选择视频

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

标签:style   color   os      rgb   c   

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相册选择视频

标签:style   color   os      rgb   c   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!