How do I pick and record video using UIImagePickerController for iPhone?

前端 未结 1 472
不思量自难忘°
不思量自难忘° 2020-12-18 15:31

I want to pick a video from iPhone for my application for uploading on the Web. I am using the UIImagePickerController for it.

For for opening picker

相关标签:
1条回答
  • 2020-12-18 16:11

    You're using the wrong delegate method. iOS 3.0 introduced imagePickerController:didFinishPickingMediaWithInfo: to replace imagePickerController:didFinishPickingImage:editingInfo:. This new method receives an NSDictionary which contains a number of key-value pairs related to the chosen image/video; in your case, you'll want to check the value for UIImagePickerControllerMediaURL.

    0 讨论(0)
提交回复
热议问题