How can I load vector image directly with iPhone SDK?

后端 未结 2 819
感情败类
感情败类 2020-12-21 02:54

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

相关标签:
2条回答
  • 2020-12-21 03:23

    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 讨论(0)
  • 2020-12-21 03:29

    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.

    0 讨论(0)
提交回复
热议问题