Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iPhone7出现显示问题 #4

Closed
MostarChow opened this issue Sep 20, 2016 · 3 comments
Closed

iPhone7出现显示问题 #4

MostarChow opened this issue Sep 20, 2016 · 3 comments

Comments

@MostarChow
Copy link

使用Xcode8,用iPhone7或iPhone7plus运行demo,
DrawertypeList -> drawerBottom(仿淘宝) -> 点我或向上滑动,
执行动画的底部viewcontroller变成纯白色,同样是iOS10,其他机型没出现该问题。

@flyweights
Copy link

我也遇到这个问题,请问你解决了吗?

@flyweights
Copy link

是 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;
    }

@wazrx
Copy link
Owner

wazrx commented Dec 16, 2016

谢谢,的确是坑爹的iPhone7和7p的ScreenUpdates相关API失效导致截屏失败而出现白屏了,现已修复!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants