我正在設計一個包含左側外出菜單的快速應用程序。 我已經使用導航控制器來識別平移,具體取決於我是否切換左側輸出菜單。滾動視圖和側面菜單與泛姿態衝突
下面是用於附接平移姿勢與導航控制器
let panGestureRecognizer = UIPanGestureRecognizer(target: self, action: "handlePanGesture:")
centerNavigationController.view.addGestureRecognizer(panGestureRecognizer)*
在其他控制器它工作正常的代碼,但是在控制器在有滾動視圖我想,經過滾動視圖被滾動,直到內容偏移0和進一步滾動左側應該打開左側的菜單。 但它可以防止調用平移手勢。
它是衝突的。
我一直在使用方法
func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWithGestureRecognizer otherGestureRecognizer: UIGestureRecognizer) -> Bool {}
試圖解決的號碼,但沒有奏效。
請讓我知道,如果任何額外的信息需要定義問題。
在此先感謝。
我找到了解決這個問題(HTTP [在此線程。]:/ /stackoverflow.com/a/13736630/2740582) –