iPhone – How to import/drawing UI graphic elements? CGContextDrawPDFPage?
- by Ross
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.
PNG (bitmapped image)
Custom UIView drawing code (generated from Opacity)
PDF (I've not used this method, is it with CGContextDrawPDFPage?)
Many thanks
Ross