Event holding ....

Discussion in 'iOS Programming' started by nightwar00, Jun 17, 2009.

  1. nightwar00 macrumors newbie

    Jun 14, 2009
    hi ! i need some advices ....

    I want to make a small piano. i want to now how i can define a zone where handle event. I have implemented a version where the event zone is a square at the edge of the button of the piano. th event are EventEnded....

    but when i play on my iphone fast some event are not catch...
    i use AVAudioPlayer with the sound format : caf. I read that 2 caf sound can be played simultaneously. But i have some note missing... i don't know why.

    Some answer ?

    sorry for my poor english :(
  2. BlackWolf macrumors regular

    Apr 9, 2009
    I guess because if you tap really fast, it is recognized as a double or triple-tap. the UITouch has a property "tapCount" that gives you the number of taps.
  3. mccannmarc macrumors 6502


    Aug 15, 2008
    Manchester, UK
    There's an open source piano app on google code, read that to get an idea of how to do it properly

Share This Page