关于ios:在”UIImagePickerController”中使用”videoMaximumDuration”时,是否可以更改消息中的文本”Video Too Long to Send”?

Is it possible to change the text 'Video Too Long to Send' in message when using 'videoMaximumDuration' in 'UIImagePickerController'?

我正在使用 UIImagePickerController 从图库中挑选视频(我将视频长度限制为 1 分钟)。这是我的代码:

1
2
3
4
5
6
7
8
9
10
11
- (void)chooseExistingVideo {
    CFStringRef mTypes[1] = { kUTTypeMovie };
    CFArrayRef mTypesArray = CFArrayCreate(CFAllocatorGetDefault(), (const void**)mTypes, 1, &kCFTypeArrayCallBacks);
    imagePickerController.mediaTypes = (__bridge NSArray*)mTypesArray;
    CFRelease(mTypesArray);

    imagePickerController.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
    imagePickerController.videoMaximumDuration = 60.0f;
    imagePickerController.allowsEditing = YES;
    [self presentViewController:imagePickerController animated:YES completion:nil];
}

当我选择一个 5 分钟长的视频时,屏幕会变成这样:

enter

在此屏幕中是否可以将"视频太长无法发送"消息的文本更改为"视频太长无法添加"或者有什么方法可以删除整个消息?

我需要你的宝贵建议。

请帮帮我。

提前致谢。

相关讨论
  • 有解决这个问题的方法吗?
  • 据我所知,这是不可能的。我会告诉你在即将推出的 iOS 版本中是否有可能。
  • 仍然是 iOS 12.4 中的一个错误

请参考这个答案:iphone uiimagepickerViewController 选择照片库视频

基本上没有办法更改或更改此消息。我不知道添加它的决定何时发生,Apple 完全没有记录它。它只对 Apple 的消息应用程序(或您发送文件的任何应用程序)有意义,我希望他们会更改或删除它。

如果除了上述答案之外,我还遇到任何禁用或更改此功能的方法,我将更新此帖子。


只需设置

1
imagePickerController.allowsEditing = false;

这是一种摆脱警报视图的方法。


以上是关于ios:在”UIImagePickerController”中使用”videoMaximumDuration”时,是否可以更改消息中的文本”Video Too Long to Send”?的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>