iPhone SDK: Successive Touches?

Discussion in 'Mac Programming' started by warstrekkid, Jun 12, 2008.

  1. macrumors newbie

    Joined:
    Jun 29, 2007
    Messages:
    16
    #1
    So I'm working on an iPhone app where I need it to deal with successive touches. In other words, one finger goes down, is held on the screen, and another finger goes down somewhere else. Unfortunately, I'm having difficulty with touchesBegan even recognizing the second finger going down. Right now, it recognizes multi-touch if they go down together. Does anyone know if successive touches are recognized (and I'm doing it wrong), or will I have to scrap this plan?
     
  2. macrumors regular

    Joined:
    Sep 13, 2007
    Messages:
    245
    Location:
    London, England
    #2
    It's not a solution, but you can check to see if the second touch is recognised with something like:
    Code:
    NSUInteger numTaps = [[touches anyObject] tapCount];
    if(numTaps >= 2) {
    ...
    }
     

Share This Page