5

I added images file to Watchkit Extension like this:

enter image description here

I want to get all images file Path of those Images. How can I do that? I tried

let applicationDic = NSFileManager.defaultManager().URLsForDirectory( NSSearchPathDirectory.ApplicationDirectory, inDomains: NSSearchPathDomainMask.UserDomainMask)[0] as! NSURL
println("document:\(applicationDic)")
Wyetro
  • 8,439
  • 9
  • 46
  • 64
Hieu Duc Pham
  • 1,074
  • 1
  • 10
  • 24

1 Answers1

0

This answer is if you don't need to do it programmatically: right click (command click) the photo, press "Open with external editor," and then on the right side of the screen you will see "Full Path" about an inch or two down the screen. That is the path to that photo!

halfer
  • 19,824
  • 17
  • 99
  • 186
CoolPenguin
  • 1,215
  • 12
  • 21