I am using a UIView to create some graphs (pie charts and bar graphs), which is easy enough.
But now I want to add some labels to these graphs, which is where I am stuck.
CGContextShowTextAtPoint() (and all the stuff leading up to its call) doesn't seem to work (shows no text) and I read it is not the recommended way of doing things anyway.
What is the recommended way of doing this and can someone point me to some examples?
Guys, thanks for the replies. I did find the trails in the sand code using google, but as that was doing pretty much the same thing as the example in the Apple docs I didn't try it verbatim. I should have as the reason the Apple code wasn't working was because the iPhone doesn't have the font they were using ("Times-Bold") - change it to helvetica and my code just worked. How frustrating! SelectFont doesn't have a return status to tell you it can't find the find nor does it crap out...
I'll try the UILabel thing a go as well, it could be friendlier to use than Quartz text.