¡@

Home 

2014/10/15 ¤U¤È 10:15:03

iphone Programming Glossary: touchedstone

UIScrollView touches vs subview touches

http://stackoverflow.com/questions/877828/uiscrollview-touches-vs-subview-touches

touches . If the user touches and moves on the beach it should scroll. If the user taps a stone it should call method touchedStone . If the user taps the beach where there is no stone it should call method touchedBeach . Now I realize this sounds dead.. ignore beach taps and accept stone taps yes However it seems that both views are accepting the tap and calling both touchedStone AND touchedBeach. Furthermore the beach tap occurs first so I can't even put in a if touchedStone then don't run touchedBeach.. tap and calling both touchedStone AND touchedBeach. Furthermore the beach tap occurs first so I can't even put in a if touchedStone then don't run touchedBeach type flag. Here's some code. On BeachView.m void touchesBegan NSSet touches withEvent UIEvent..