美文网首页
cocoa 获取根窗口

cocoa 获取根窗口

作者: mjf | 来源:发表于2016-07-19 21:03 被阅读0次

    // Window setup

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

    for (UIWindow *window in frontToBackWindows) {

    if (window.windowLevel == UIWindowLevelNormal) {

    self.applicationKeyWindow = window;

    break;

    }

    }

    相关文章

      网友评论

          本文标题:cocoa 获取根窗口

          本文链接:https://www.haomeiwen.com/subject/qbmsjttx.html