cocoa 获取根窗口

// Window setup

NSEnumerator *frontToBackWindows = [[[UIApplication sharedApplication] windows] reverseObjectEnumerator];

for (UIWindow *window in frontToBackWindows) {

if (window.windowLevel == UIWindowLevelNormal) {

self.applicationKeyWindow = window;

break;

}

}

你可能感兴趣的:(cocoa 获取根窗口)