I'm trying to draw a figure in my iPhone application using Quartz 2D. I understand that I have to do this by subclassing UIView and overriding the drawRect function. I'm trying to follow this tutorial to do this but I can't get it to work.
It seems subclassing UIView does not create a .xib-file like the tutorial seem to imply. Subclassing UIViewController (I know this is wrong but I tried it anyway) does create a .xib-file but does not seem to have the drawRect-function.
Has anyone any experience in this, or knows what I'm doing wrong?
Thank you in advance, Tobias Tovedal