We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
XHLaunchAd.m 的207行的setupLaunchAd 方法里换成这个就好了
UIWindow *window; if (@available(iOS 13.0, *)) { NSArray *array =[[[UIApplication sharedApplication] connectedScenes] allObjects]; UIWindowScene *windowScene = (UIWindowScene *)array.firstObject; window = [[UIWindow alloc] initWithWindowScene:windowScene]; window.frame = windowScene.coordinateSpace.bounds; } else { window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; }
Sorry, something went wrong.
XHLaunchAd.m 的207行的setupLaunchAd 方法里换成这个就好了 UIWindow *window; if (@available(iOS 13.0, *)) { NSArray *array =[[[UIApplication sharedApplication] connectedScenes] allObjects]; UIWindowScene *windowScene = (UIWindowScene *)array.firstObject; window = [[UIWindow alloc] initWithWindowScene:windowScene]; window.frame = windowScene.coordinateSpace.bounds; } else { window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; }
这里还需要一个判断,如果项目中保留了SenceDelegate,但是没有实际应用,windowScene获取为nil
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: