Question : drawRect inside of a UIViewControll

Hi,

I have looked of the drawRect method inside of UIView and I have downloaded and executed the apple docs code. It works fine but I want to have my app draw when a user selects a button from a UIViewController. I tried for a while but I can never call the drawRect method inside of UIView. So how do I produce drawn images from UIView and put them in a UIViewController.

I have googled for days and I'm stuck - any pointers and/or tutorial links on how this is done would be great!

Thanks,
waffe

Answer : drawRect inside of a UIViewControll

Check if this tutorial will explain the subject for you:
http://www.switchonthecode.com/tutorials/an-absolute-beginners-guide-to-iphone-development

Or maybe this one: http://www.roseindia.net/tutorial/iphone/examples/creating-UIView.html

I do not know your program, seems like you just test something.
Random Solutions  
 
programming4us programming4us