1
定义资产类别我想知道,如果它能够在运行时确定哪些资产目录。在运行时
理想我想有assetsA.xcassets和assetsB.xcassets并确定哪一个在运行时使用。
所有图像集将具有相同的名称,如bgPattern但看起来略有不同。
定义资产类别我想知道,如果它能够在运行时确定哪些资产目录。在运行时
理想我想有assetsA.xcassets和assetsB.xcassets并确定哪一个在运行时使用。
所有图像集将具有相同的名称,如bgPattern但看起来略有不同。
这应该/可以做你需要什么...
init?(named name: String, in bundle: Bundle?,
compatibleWith traitCollection: UITraitCollection?)
https://developer.apple.com/reference/uikit/uiimage/1624154-init