开发者

How can I load vector image directly with iPhone SDK?

开发者 https://www.devze.com 2022-12-14 23:07 出处:网络
How can I load vector image directly with iPhone开发者_C百科 SDK? Just as UIImage loads bitmap images.I did this recently using PDF. I saved some resolution independent images directly from Illustrato

How can I load vector image directly with iPhone开发者_C百科 SDK? Just as UIImage loads bitmap images.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消