当ScrollView手势和super view手势冲突的解决方法,即父视图也要处理Pan手势,可以用以下解决方法:
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView{
CRIViewController *viewController = (CRIViewController*)([CRIAppDelegate instance]).viewController;
[viewController fixMainView];
}
- (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset {
CRIViewController *viewController = (CRIViewController*)([CRIAppDelegate instance]).viewController;
[viewController releaseMainViewFixAfterDelay:1];
}
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate{
CRIViewController *viewController = (CRIViewController*)([CRIAppDelegate instance]).viewController;
[viewController releaseMainViewFixAfterDelay:1];
}