iPhone – How to import/drawing UI graphic elements? CGContextDrawPDFPage?

Posted by Ross on Stack Overflow See other posts from Stack Overflow or by Ross
Published on 2010-05-26T15:03:39Z Indexed on 2010/05/26 15:11 UTC
Read the original article Hit count: 376

Filed under:
|

Hello,

What is the best way to use the custom UI graphics on the iPhone?

I've come across CGContextDrawPDFPage and Panic's Shrinkit. Should I be using storing my vector ui graphics as PDF's and loading them using CGContextDrawPDFPage to draw them.

I did previously asked what way Apple store their UI graphics and was answered crushed png.

The options as I see it, but I would really want to know what technique other people use.

This question is for vector graphics only. Looking for what is standard / most effective / most efficient.

  1. PNG (bitmapped image)
  2. Custom UIView drawing code (generated from Opacity)
  3. PDF (I've not used this method, is it with CGContextDrawPDFPage?)

Many thanks Ross

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cocoa