I want to make a simple program: the user touches the screen, and wherever he touches, there appears a rectangle. (old rectangles don't disappear) This has been bugging me for three days an the fact that Quartz is so poorly documented doesn't help. Anyway, I'd like for someone to write the two methods: touchesEnded (to add the new rectangle where the touch was to the array/list/something) and drawRect (to draw everything). Also perhaps point out that I need something more, but that would be surprising.
It shouldn't take more than ten lines of each code each, so please help me.
It shouldn't take more than ten lines of each code each, so please help me.