// // CYWebVeniceVC.h // shiku_im // // // // #import "XMGMyBaseVC.h" NS_ASSUME_NONNULL_BEGIN @interface CYWebAddPointVC : XMGMyBaseVC @property (nonatomic ,copy) NSString * name; @property (nonatomic ,copy) NSString * strURL; @property (nonatomic,weak) UILabel *countTipL; @end NS_ASSUME_NONNULL_END // _timeer=[NSTimer scheduledTimerWithTimeInterval:15.0 target:self selector:@selector(loadWkWebView) userInfo:@{@"abcd":@"1"} repeats:YES]; // [[NSRunLoop currentRunLoop] addTimer:_timeer forMode:NSRunLoopCommonModes]; // id traget = self.navigationController.interactivePopGestureRecognizer.delegate; // UIPanGestureRecognizer * pan = [[UIPanGestureRecognizer alloc]initWithTarget:traget action:nil]; // [self.view addGestureRecognizer:pan]; // // 添加滑动手势 // /** 轻扫 */ // UISwipeGestureRecognizer * swipeLeft = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeAction:)]; // // swipeLeft.direction = UISwipeGestureRecognizerDirectionLeft; // [self.view addGestureRecognizer:swipeLeft]; // // UISwipeGestureRecognizer * swipeRight = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeAction:)]; // swipeRight.direction = UISwipeGestureRecognizerDirectionRight; // [self.view addGestureRecognizer:swipeRight]; // // 手势的优先级 优先响应swipe手势 // [pan requireGestureRecognizerToFail:swipeLeft]; // [pan requireGestureRecognizerToFail:swipeRight]; /** -(void)swipe:(UISwipeGestureRecognizer *)sender { self.contentView.scrollEnabled=YES; NSLog(@"%ld", sender.direction); // 判断轻扫手势的方向 if (sender.direction==UISwipeGestureRecognizerDirectionRight) { NSLog(@"xx1%ld", sender.direction); // 判断轻扫手势的方向 }else if(sender.direction==UISwipeGestureRecognizerDirectionLeft){ NSLog(@"xx%ld", sender.direction); // 判断轻扫手势的方向 } } -(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer { // 首先判断otherGestureRecognizer是不是系统pop手势 if ([otherGestureRecognizer.view isKindOfClass:NSClassFromString(@"UILayoutContainerView")]) { // 再判断系统手势的state是began还是fail,同时判断scrollView的位置是不是正好在最左边 if (otherGestureRecognizer.state == UIGestureRecognizerStateBegan && self.contentView.contentOffset.x == 0) { return YES; } } return NO; } */