简体   繁体   English

ALAssets的URL都相同

[英]URL for ALAssets are all the same

I print out a number of ALAssets and they all have the name public.someFileType 我打印出许多ALAsets,它们的名称均为public.someFileType。

Added asset ALAsset - Type:Photo, URLs:{ "public.jpeg" = "assets-library://asset/asset.JPG?id=1000000020&ext=JPG"; 添加的资产ALAsset-类型:照片,URL:{“ public.jpeg” =“ assets-library://asset/asset.JPG?id = 1000000020&ext = JPG”; } }

Is that something I need to be concerned about or should I just focus on 是我需要关注的事情还是我应该专注于

"//asset/asset.JPG?id=1000000020&ext=JPG"; “ //asset/asset.JPG?id=1000000020&ext=JPG”;

IS there an easy way of getting the filename of the Asset. 是否有一种获取资产文件名的简便方法。 I asked a similar question and I got a great answer but it seems overkill. 我问了一个类似的问题,我得到了一个很好的答案,但似乎太过分了。

Yes the URL is really the "//asset/asset.JPG?id=1000000020&ext=JPG" part. 是的,URL确实是“ //asset/asset.JPG?id=1000000020&ext=JPG”部分。 There is no way to get the real filename that is officially supported by Apple. 无法获得Apple正式支持的真实文件名。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM