疯子

Results 8 comments of 疯子

目前是会有的,因为的跳转是截屏后跳转,返回时先给截屏的图片给用户看,你可以吧截屏保存的数组修改下,变成键值对,然后返回先去找那个vc指定的image,然后就应该不会有的

好的,谢谢你的支持,我现在去弄下

你好,我已经支持了pod,你自己弄下啊

谢谢你的建议,我试试啊,那个UIScreenEdgePanGestureRecognizer 他的检测洗屏幕边缘,所以范围小,这样不会与其他view滑动事件冲突,当然如果说你不需要考虑这个与其他滑动相冲突,可以换个手势

谢谢,你的问题,我先和你说一下,的确会有这个问题,我自己的项目中已经修改了,忘了提交了,配合 uitabcontrolller 时候,他的superview层级是不一样的,所以你截屏的时候如果没有uitabbar上级view截屏,底下 tabbar是没有的,所以,你只需要把 - (UIImage *)capture{}中的方法改下 - (UIImage *)capture { if (self.view.superview.superview.superview) { UIGraphicsBeginImageContextWithOptions(self.view.superview.superview.superview.bounds.size, self.view.superview.superview.superview.opaque, 0.0); [self.view.superview.superview.superview.layer renderInContext:UIGraphicsGetCurrentContext()]; }else{ UIGraphicsBeginImageContextWithOptions(self.view.superview.bounds.size, self.view.superview.opaque, 0.0); [self.view.superview.layer renderInContext:UIGraphicsGetCurrentContext()]; } UIImage \* img =...

很高兴,看到你的提问 你可以把m文件小小修改: - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated { if (self.viewControllers.count > 0) { [self.mScreenShots addObject:[self capture]]; viewController.hidesBottomBarWhenPushed = YES; } [super pushViewController:viewController animated:animated]; } 有其他问题,欢迎问

是的,我现在已经改成了UIScreenEdgePanGestureRecognizer,谢谢你的idea😊