UIScrollView(UITableView, UICollectionView)の上にUIGestureRecognizerをおくと、元のUIScrollViewのgestureが効かなくなってしまう問題
- scrollViewを置いてあるUIViewControllerにUIGestureRecognizerDeleageを追加
- gestureRecognizerのdelegateにselfを代入
- 以下メソッドを実装
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer { return YES; }