[UIImage imagedNamed:inBundle:compatibleWithTraitCollection:] 实际上是如何访问图像的?
How does [UIImage imagedNamed:inBundle:compatibleWithTraitCollection:] actually access an image?
[UIImage imagedNamed:inBundle:compatibleWithTraitCollection:] 如何实际访问图像?
以我的框架为例,product上的bundle地址是/Users/allenandkim/Library/Developer/Xcode/DerivedData/StraaS-ayuoelxoryhklegktulnazuqndzo/Build/Products/ReleaseCandidate-iphonesimulator/FooSDK.framework
,但是文件夹里有.xcassets
相关的Asset.car
我认为Asset.car
是.xcassets
的编译文件。 imagedNamed
是否访问来自 Asset.car
的图像?或者它如何访问包中的图像?
对于你的问题,是的。
Asset.car
已存档 *.xcassets。检查此线程,您可以使用它提到的工具将其解压缩回 xcasset:Analysing Assets.car file in iOS
[UIImage imagedNamed:inBundle:compatibleWithTraitCollection:] 如何实际访问图像?
以我的框架为例,product上的bundle地址是/Users/allenandkim/Library/Developer/Xcode/DerivedData/StraaS-ayuoelxoryhklegktulnazuqndzo/Build/Products/ReleaseCandidate-iphonesimulator/FooSDK.framework
,但是文件夹里有.xcassets
相关的Asset.car
我认为Asset.car
是.xcassets
的编译文件。 imagedNamed
是否访问来自 Asset.car
的图像?或者它如何访问包中的图像?
对于你的问题,是的。
Asset.car
已存档 *.xcassets。检查此线程,您可以使用它提到的工具将其解压缩回 xcasset:Analysing Assets.car file in iOS