iOS矢量图 相关信息汇总

2017-09-05  本文已影响46人  悟2023

Xcode 6以后支持矢量图,原生支持pdf格式,貌似可以通过第三方框架支持svg格式。

svg格式矢量图
下面这段话是网上有关Xcode不支持svg格式原因的描述
Why PDF instead of SVG or other formats

For SVG and other formats, the vector image has no actual size info, while PDF has size info. I think what Xcode 6 does is using the size info in PDF as actual display size, then generate 2x 3x files from the vector image.

通过第三方框架支持svg参考以下链接:
http://red-glasses.com/index.php/iphone/loading-svg-files-on-iphoneipad-svgkit-not-the-javascript-one/
SVGKit地址:https://github.com/SVGKit/SVGKit/

上一篇 下一篇

猜你喜欢

热点阅读