2016-07-28 26 views

回答

0

剛剛嘗試這一點

if UIImagePickerController.isSourceTypeAvailable(UIImagePickerControllerSourceType.PhotoLibrary) 
    { 
     let imagePicker = UIImagePickerController() 
     imagePicker.delegate = self 
     imagePicker.sourceType = .PhotoLibrary 
     imagePicker.mediaTypes = [kUTTypeMovie as String] 
     imagePicker.videoMaximumDuration = 300 
     imagePicker.videoQuality = .Type640x480 
     imagePicker.allowsEditing = true 
     presentViewController(imagePicker, animated: true, completion: nil) 
    } 
+0

是的,我終於發現這一點,但它不能調整視頻區域,或自定義工具欄。 – itaen

+0

只需檢查本教程可能會有所幫助 - https://www.raywenderlich.com/13418/how-to-play-record-edit-videos-in-ios –

相關問題