美文网首页
iOS矢量图 相关信息汇总

iOS矢量图 相关信息汇总

作者: 悟2023 | 来源:发表于2017-09-05 10:17 被阅读46次

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/

相关文章

网友评论

      本文标题:iOS矢量图 相关信息汇总

      本文链接:https://www.haomeiwen.com/subject/fucujxtx.html