Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 766
Andrew Davis Avatar asked Sep 21 '14 19:09

Andrew Davis


1 Answers

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

like image 140
jlw Avatar answered Oct 15 '22 08:10

jlw