iphone uiimagepickerViewController choosing photolibrary video

落爺英雄遲暮 提交于 2019-12-24 06:03:47

问题


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 appearing 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


回答1:


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).



来源:https://stackoverflow.com/questions/5755371/iphone-uiimagepickerviewcontroller-choosing-photolibrary-video

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!