Xcode 6 allows VECTOR image assets… how to use them?

后端 未结 7 1499
青春惊慌失措
青春惊慌失措 2020-11-28 02:00

I was fiddling with Xcode 6 vs images assets when I noticed something very interesting: we now can specify vector images in them (go see in the Utilities pa

7条回答
  •  离开以前
    2020-11-28 02:33

    you can use this online tool to convert your images from svg to pdf

    http://www.fileformat.info/convert/image/svg2pdf.htm

    1- upload image

    2- select width:24px,height:24px

    3- copy to your xcode project

    4- go to Images.xcassets

    5- right click and create new image set

    6- from the right panel select (attribute inspector)

    7- change types to vector

    8- drag and drop your pdf image there

    9- use it in your project

提交回复
热议问题