ChavezChen / CWLateralSlide

One line of code to integrate 0 coupling side drawer!一行代码集成0耦合侧滑抽屉!
MIT License
1.28k stars 201 forks source link

ios9 侧边栏cell点击卡顿 #82

Closed EarthMass closed 6 years ago

EarthMass commented 6 years ago

ios9 侧边栏点击卡顿,ios10 + 就没问题,不知道什么原因

下面两种方式都是这种情况

dispatch_async(dispatch_get_main_queue(), ^{ [self cw_pushViewController:vc]; });

// dispatch_async(dispatch_get_main_queue(), ^{ // // [[UIApplication sharedApplication].delegate.window.rootViewController dismissViewControllerAnimated:NO completion:^{ // // // // UINavigationController * nav = [[UINavigationController alloc] initWithRootViewController:vc]; // [UIApplication sharedApplication].delegate.window.rootViewController = nav; // // NSLog(@"动画完成"); // // }]; // });

EarthMass commented 6 years ago

搞定了 估计是哪里 cell 点击被拦截了 ios9 上 在侧边菜单中添加

//添加手势 UITapGestureRecognizer *gesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:nil]; gesture.numberOfTapsRequired = 1; gesture.delegate = self; [self.view addGestureRecognizer:gesture];

pragma mark - UIGestureRecognizerDelegate

@ChavezChen