I want to draw a simple shape in the iPhone simulator when a button is pressed. I can draw it on the screen using the QuartzView without generating an event for the button. However, I want to draw a shape with the touch of a button when an event is generated. I tried to write an IBAction method for the button in both QuartzView and UIViewController. However, I cannot generate an event. Can someone help?
Share
write the following code inside the viewcontroller file. It will work:-
Feel free to ask anything more.