开发者

Select only video file using pickerview in iphone sdk

开发者 https://www.devze.com 2023-01-02 12:13 出处:网络
How to select only video file using pickerview in iphone 开发者_如何学Gosdk?You can use UIImagePickerController class as below to select only videofiles from library

How to select only video file using pickerview in iphone 开发者_如何学Gosdk?


You can use UIImagePickerController class as below to select only videofiles from library

UIImagePickerController * picker = [[UIImagePickerController alloc] init];
picker.delegate = self;  
picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
picker.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil];
0

精彩评论

暂无评论...
验证码 换一张
取 消