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

Xcode 11 and iOS 13 #70

Open
superbon opened this issue May 6, 2020 · 1 comment
Open

Xcode 11 and iOS 13 #70

superbon opened this issue May 6, 2020 · 1 comment

Comments

@superbon
Copy link

superbon commented May 6, 2020

Not working on iOS 13 and Xcode 11

@04zhujunjie
Copy link

修改一下LGAlertView.m文件中的window对象创建
if (@available(iOS 13, *)) {
for (UIScene *scene in [[[UIApplication sharedApplication] connectedScenes] allObjects]) {
if (scene.activationState == UISceneActivationStateForegroundActive) {
self.window = [[LGAlertViewWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
self.window.frame = [UIScreen mainScreen].bounds;
break;
}
}
}else{
self.window = [[LGAlertViewWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
}

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

2 participants