Swift playgrounds with UIImage

前端 未结 11 1893
轻奢々
轻奢々 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:21

    Look at the iOS Developer Library->Playground Help and search"Resource Files" and you will find the answer

    1、Open the .playground

    2、Show the Project navigator by selecting View > Navigators > Show Project Navigator.

    3、Drag the images to the Resources

    Like follow:

    enter image description here

提交回复
热议问题