本文介绍了UIImagePickerController显示的VIDEO_TOO_LONG_TITLE警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 UIImagePickerController 来拍电影。通过设置控制器的 videoMaximumDuration 属性来限制电影的长度。

当试图拍摄更长的电影时,会显示警告,正如所料。

I use a UIImagePickerController to take movies. The length of a movie is limited by setting the videoMaximumDuration property of the controller.
When one tries to take a longer movie, an alert is shown, as expected.

然而意外的附加提醒名为 VIDEO_TOO_LONG_TITLE 会直接显示在控件上方(参见下图)。 >
显然这是一个iOS错误(仅部分本地化,没有选择剪辑)。

However an unexpected additional alert entitled VIDEO_TOO_LONG_TITLE is shown directly above the controls (see image below).
Apparently this is an iOS bug (only partly localized, no clip has been selected).

是否可以隐藏这种不必要且不适当的警报?

Is it possible to hide this unnecessary and inappropriate alert?

推荐答案

imagePicker.allowsEditing = false

这篇关于UIImagePickerController显示的VIDEO_TOO_LONG_TITLE警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 02:23