How to display an image from Asset Catalog in Today Extension?

混江龙づ霸主 提交于 2019-12-06 17:24:13

问题


I'm working on a Today Extension for iOS8. My App Group is set up correctly and I can successfully use NSUserDefaults to send simple bits of data to my extension (using this tutorial).

In the storyboard for my extension, I've placed an image onto the storyboard and set the image to be an asset I have in my Asset Catalog. Even though it appears in Interface Builder, when I run the app on a device and simulator the image doesn't display.

What am I missing?


回答1:


Make sure the asset catalog is included in the target for your Today extension.



来源:https://stackoverflow.com/questions/25963059/how-to-display-an-image-from-asset-catalog-in-today-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!