¡@

Home 

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

iphone Programming Glossary: ktapmargin

How to cancel UIGestureRecognizer if subview's button pressed

http://stackoverflow.com/questions/5866520/how-to-cancel-uigesturerecognizer-if-subviews-button-pressed

tapGesture release and my gesture handler void tapGestureHandler UIGestureRecognizer gestureRecognizer const CGFloat kTapMargin 180 Get the position of the point tapped in the window co ordinate system CGPoint tapPoint gestureRecognizer locationInView.. locationInView nil If the tap point is to the left of the page then go back a page if tapPoint.x self.frame.size.width kTapMargin self scrollRectToVisible pageViewRightFrame animated YES If the tap point is to the right of the page then go forward a.. pageViewRightFrame animated YES If the tap point is to the right of the page then go forward a page else if tapPoint.x kTapMargin self scrollRectToVisible pageViewLeftFrame animated YES All works well except where I have a subview on the page that has..