Swift playgrounds with UIImage

前端 未结 11 1876
轻奢々
轻奢々 2020-12-01 01:36

I am working with Xcode 6, and I\'m trying to recreate the code demoed during session 401 \"What\'s new in Xcode 6\". I\'ve added an image to Images.xcassets (called Sample)

11条回答
  •  爱一瞬间的悲伤
    2020-12-01 02:32

    You can find out the path of resourcePath using these commands in playground:

    var bundle = NSBundle.mainBundle()
    var path = bundle.resourcePath
    

    Default for me was:

    /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents
    

提交回复
热议问题