How to get a list of all image files in Watchkit Extension

I added the image file to the Watchkit extension as follows:

enter image description here

I want to get all image files. The path of these images. How can i do this? I tried

let applicationDic = NSFileManager.defaultManager().URLsForDirectory( NSSearchPathDirectory.ApplicationDirectory, inDomains: NSSearchPathDomainMask.UserDomainMask)[0] as! NSURL println("document:\(applicationDic)") 
+5
source share
1 answer

This answer: if you do not need to do this programmatically: right-click (press the button), click "Open with an external editor", and then on the right side of the screen you will see "Full path", about an inch or two down the screen . This is the way to this photo!

0
source

All Articles