开发者

iphone uiimagepickerViewController choosing photolibrary video

开发者 https://www.devze.com 2023-02-28 06:22 出处:网络
Am developing a application which is only selecting video form local photo library and sending it to the server. Here am fixed videoMaximumDuration as 1min..(bcoz am restricting user to choose video l

Am developing a application which is only selecting video form local photo library and sending it to the server. Here am fixed videoMaximumDuration as 1min..(bcoz am restricting user to choose video less than 1min).

when user choosing more than 1min video in uiimagepickerviewcontroller a text is appearin开发者_Python百科g that 'Video Too Long to Send - Please select similar form video' Here while this text is appearing i want to disable or hide the 'Choose' button which is there in bottom of uiimagepickercontroller.

HOW to hide that choose button or disable in imagepickercontroller.

Thanks


You can not do this. It is not possible to customize the picker in this way.

The best thing you can do is to warn the user before that the video must be less than 1 min. Which it sounds like you are already doing. Then in the delegate callback

imagePickerController:didFinishPickingMediaWithInfo:

Check the video is less than 1 min. If not display an error and make the user pick again.

Or perhaps you can suggesting editing the video (which is very easy to do on iPhone).

0

精彩评论

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