cocoa 获取根窗口

96
mjf
2016.07.19 21:03* 字数 25

// Window setup

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

for (UIWindow *window in frontToBackWindows) {

if (window.windowLevel == UIWindowLevelNormal) {

self.applicationKeyWindow = window;

break;

}

}

iOS开发
Web note ad 1