Change text of UIAlertView when recording a video with UIImagePickerController and reaching the videoMaximumDuration

落花浮王杯 提交于 2019-11-29 18:42:30

The text of the alert is localized to the current locale settings of the device, and unless you want to walk the view hierarchy looking for the UIAlertView and set its message property (which is fragile and would need to be tested across all versions of iOS you're deploying to), you'll probably need to create a fully custom UI on top of a capture session. The picker controller delegate protocol doesn't have callbacks for when recording stops and starts, so there isn't a good way to control it manually and supply your own alert without going much lower-level in AVFoundation.

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