UIWindow *window = nil;
if (@available(iOS 13.0, *)) {
window = [UIApplication sharedApplication].windows[0];
} else {
window = [UIApplication sharedApplication].delegate.window;
}
UIWindow *window = nil;
if (@available(iOS 13.0, *)) {
window = [UIApplication sharedApplication].windows[0];
} else {
window = [UIApplication sharedApplication].delegate.window;
}
本文标题:iOS当前window
本文链接:https://www.haomeiwen.com/subject/fnuynhtx.html
网友评论