iOS当前window

2020-05-11  本文已影响0人  Sh1mmer
    UIWindow *window = nil;
    if (@available(iOS 13.0, *)) {
        window = [UIApplication sharedApplication].windows[0];
    } else {
        window = [UIApplication sharedApplication].delegate.window;
    }
上一篇下一篇

猜你喜欢

热点阅读