¡@

Home 

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

iphone Programming Glossary: touchedbeach

UIScrollView touches vs subview touches

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

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 simple. Everyone and everything tells me that if there's something on a UIScrollView that.. 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 type flag... 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 event if self.decelerating..