MQ Gu
MQ Gu

Reputation: 693

How can I load vector image directly with iPhone SDK?

How can I load vector image directly with iPhone SDK? Just as UIImage loads bitmap images.

Upvotes: 4

Views: 8969

Answers (2)

nielsbot
nielsbot

Reputation: 16022

I did this recently using PDF. I saved some resolution independent images directly from Illustrator (using the smallest file size preset). I have some code (gists) here.

Upvotes: 5

Brad Larson
Brad Larson

Reputation: 170309

As of iPhone OS 2.1, the iPhone's WebKit supports SVG graphics natively. You should be able to use a UIWebView to load the SVG element for display. This question provides some sample code for doing so.

Upvotes: 4

Related Questions