iOS矢量图 相关信息汇总

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/

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容