Asset Catalogs in resource bundles

前端 未结 3 1971
逝去的感伤
逝去的感伤 2021-02-02 11:13

I have a separate bundle of resources that ship with my framework. I want to put and use an asset catalog in that bundle. However UIImage imageNamed: says it uses the current ap

3条回答
  •  悲&欢浪女
    2021-02-02 11:51

    As of iOS 8, you can now use [UIImage imageNamed:inBundle:compatibleWithTraitCollection:] to load images by name from a different bundle. For example, a dynamic framework can use its own asset catalog separate from the main app's bundle.

提交回复
热议问题