-
解决右滑返回与scroll滑动的冲突
let gestureArray: [AnyObject] = self.navigationController!.view.gestureRecognizers!
// 当是侧滑手势的时候设置scrollview需要此手势失效即可
for gesture in gestureArray {
if gesture.isKindOfClass(UIScreenEdgePanGestureRecognizer.self)
{
self.scroll.panGestureRecognizer.requireGestureRecognizerToFail(gesture as! UIGestureRecognizer)
break
}
}