Draw an image with touch

Discussion in 'iOS Programming' started by Kinhow, Mar 28, 2011.

  1. macrumors newbie

    Joined:
    Mar 28, 2011
    #1
    Hi guys, I'm having a bit of an issue here when I try to create an image when the user touches the screen.

    I manage to make it happen with a Quartz 2d tutorial.
    But when I touch for the second time, it erases the first one.

    So I was wondering if this is the best way to do that. And how to keep the images I drew before?

    thanks
     
  2. macrumors 68000

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #2
    Perhaps save each new image to an NSMutableArray?
     

Share This Page