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
- (UIWindow *)customWindow { if (!_customWindow) { if (@available(iOS 13.0, *)) { UIWindowScene *windowScene = nil; for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) { if(scene.activationState == UISceneActivationStateForegroundActive) { windowScene = (UIWindowScene *)scene; } if(!windowScene && [UIApplication sharedApplication].connectedScenes.count == 1) { windowScene = (UIWindowScene *)scene; } } if (windowScene) { _customWindow = [[UIWindow alloc] initWithWindowScene:windowScene]; } } else { _customWindow = [[UIWindow alloc] initWithFrame:CGRectZero]; } } return _customWindow; }
这样可以进行兼容
The text was updated successfully, but these errors were encountered:
ok
Sorry, something went wrong.
🛠 Fix #948
cd8b660
No branches or pull requests
这样可以进行兼容
The text was updated successfully, but these errors were encountered: