【发布时间】:2011-09-30 10:12:25
【问题描述】:
我想在不使用 UIWebView 的情况下在 iPhone 中呈现 SVG 图像。我该怎么做?
我已经检查了这两个链接:
http://www.splashdust.net/2010/09/svgquartzrenderer-a-basic-iphone-sdk-compatible-svg-renderer/ https://github.com/splashdust/SVGQuartzRenderer
Github 上的上述项目显示 102 个错误,显示 UIKit 框架缺失和其他错误,我也无法添加该框架。 我认为该应用程序适用于 MacOS 而不是 iOS。
http://maniacdev.com/2011/05/open-source-library-to-render-svg-graphics-as-core-animation-layers/
https://github.com/mattrajca/SVGKit
上述网址上的项目在我构建项目时显示错误。
Target 指定产品类型“com.apple.product-type.framework”,但“iPhoneOS”平台没有此类产品类型。
有人知道怎么解决吗?或者我可以使用的其他有用的工作示例?我想在 iPhone 上渲染 SVG。
更新:我已经通过阅读说明使 SVGKit 正常工作。但是当我试图让我从 Github 下载的项目工作时(https://github.com/splashdust/SVGQuartzRenderer ) 我收到以下错误:
1) UIKit/UIKit.h:没有这样的文件或目录(我无法使用添加现有框架添加它)
2) Libxml/tree.h:没有这样的文件或目录
3) 'xmlParserCtxtPtr' 之前的预期说明符限定符列表。
有谁知道如何解决它并使其工作?
【问题讨论】:
标签: iphone image uiimageview svg