问题
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