“imagePickerController:didFinishPickingMediaWithInfo:” “UIImagePickerControllerMediaURL”信息字典中的关键奇怪行为
在“imagePickerController:didFinishPickingMediaWithInfo:
”中,信息字典有时没有键“UIImagePickerControllerMediaURL
”。有时确实有。我尝试清洁目标,但这没有帮助。此外,工作流程始终相同:我遵循相同的步骤并从库中选择相同的视频文件。有时信息字典中包含“UIImagePickerControllerMediaURL
”键,有时同一文件的信息字典本身中不存在“UIImagePickerControllerMediaURL
”。无法理解。有人可以帮忙吗?
这是我从照片库中选择视频/电影时的信息字典的 NSLog
:
info dict = {
UIImagePickerControllerMediaType = "public.movie";
UIImagePickerControllerReferenceURL = "assets-library://asset/asset.MOV?id=1000000466&ext=MOV";
}
In "imagePickerController:didFinishPickingMediaWithInfo:
" the info dictionary sometimes doesn't have the key "UIImagePickerControllerMediaURL
". Sometimes it does have. I tried cleaning the targets but that didn't help. Also, the workflow is always the same: I follow the same steps and choose the same video file from library. Sometime info dictionary has "UIImagePickerControllerMediaURL
" key in it and sometime "UIImagePickerControllerMediaURL
" is absent in the info dictionary itself for the same file. Could not understand it. Can somebody help ?
This is my NSLog
of info dictionary when i select video/movie from photos library :
info dict = {
UIImagePickerControllerMediaType = "public.movie";
UIImagePickerControllerReferenceURL = "assets-library://asset/asset.MOV?id=1000000466&ext=MOV";
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当您的帐户视频保存在 iCloud 上时,就会发生这种情况。当您选择视频时,它会暂时从 icloud 下载并显示给您,因此 UIImagePickerControllerMediaURL 将不会出现。
It happen when your account Video save on iCloud. When you choose video it will temporarily download from icloud and show to you so UIImagePickerControllerMediaURL will don't appear.