iOS 13 [UIApplication sharedApplication].keyWindow 获取window适配
UIWindow*window=nil;if(@available(iOS13.0,*)){for(UIWindowScene*windowScenein[UIApplicationsharedApplication].connectedScenes){if(windowScene.activationState==UISceneActivationStateForegroundActive){w