Reputation: 99
I am working with xcode 6, and I am recreating the image code that was demoed during session 401 "what is new in xcode 6). I put an image in my Bundle resource directory, and created a playground file. Playground does not execute the command var sample = UIImage(named: "img") or any command after. Any Idea?
Thanks for your help
Upvotes: 1
Views: 712
Reputation: 11
Did you setup the resource path from utilities?
View > Utilities > Show Utilities
When the right pane opens Change Resource Path (Not Location) to Absolute Path Click the little folder icon under Resource Path and then select the folder where you image is..
Then run your code above..
if you already did that part, what does the console output say?
Upvotes: 1