在iOS中显示矢量图像(SVG或FXG) [英] Display vector images in iOS (SVG or FXG)

查看:280
本文介绍了在iOS中显示矢量图像(SVG或FXG)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在iOS应用程序中以Adobe FXG文件格式(从Flash导出)或SVG格式显示图像. 是否有可以渲染矢量图形的Objective-C工具或库?

I would like to display images in Adobe FXG file format (exported from flash) or SVG format in an iOS application. Is there an Objective-C tool or library that can render vector graphics ?

(我不想将图像转换为位图格式!我想保留矢量格式)

推荐答案

也许 SVGKit 可以帮助您:

SVGKit是一个跨平台的Cocoa框架,用于将SVG文件呈现为Core Animation层.所有形状均由CAShapeLayer类的实例表示,并且根据设计可以设置动画. SVGKit与最新的OS X和iOS SDK兼容.

SVGKit is a cross-platform Cocoa framework for rendering SVG files as Core Animation layers. All shapes are represented by instances of the CAShapeLayer class, and are, by design, animatable. SVGKit is compatible with the latest OS X and iOS SDK's.

注意:如今,我建议改用 PaintCode

Note: Nowadays i would recommend to use PaintCode instead!

这篇关于在iOS中显示矢量图像(SVG或FXG)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆