Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVG images in an iPhone application

I'm looking for a small tutorial that can help me use svg images in iphone application. I'm trying to learn about svg format, and would love to know if there is relevant material from apple out there? particularly, w.r.t. iPhone.

Are there any open source libraries, or frameworks in iPhone SDK 3.0+ for SVG?

Any help is appreciated. Thanks. Mustafa

like image 443
Mustafa Avatar asked Aug 09 '09 09:08

Mustafa


2 Answers

The UIWebView class will render SVG files.

To demonstrate this, put your SVG file on the web somewhere and view it with Mobile Safari.

If you need a tutorial on how to use UIWebView, search Google on "UIWebView tutorial".

like image 107
Alex Reynolds Avatar answered Sep 18 '22 09:09

Alex Reynolds


You might want to check out this project: https://github.com/splashdust/SVGQuartzRenderer

It enables you to at least get past UIWebView.

like image 22
picknick Avatar answered Sep 21 '22 09:09

picknick