Closed MostarChow closed 5 years ago
我也遇到这个问题,请问你解决了吗?
是 iPhone7或iPhone7plus 中的UIView *fromTempView = [fromVC.view snapshotViewAfterScreenUpdates:NO];失效 改成
(UIView )imageFromView:(UIView )snapView { UIGraphicsBeginImageContext(snapView.frame.size); CGContextRef context = UIGraphicsGetCurrentContext(); [snapView.layer renderInContext:context]; UIImage *targetImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext();
UIImageView *tmpView = [[UIImageView alloc] initWithImage:targetImage]; snapView.frame = snapView.frame; return tmpView; }
谢谢,的确是坑爹的iPhone7和7p的ScreenUpdates相关API失效导致截屏失败而出现白屏了,现已修复!
使用Xcode8,用iPhone7或iPhone7plus运行demo, DrawertypeList -> drawerBottom(仿淘宝) -> 点我或向上滑动, 执行动画的底部viewcontroller变成纯白色,同样是iOS10,其他机型没出现该问题。