Loading

Tuesday, November 25, 2014

Get Top View of our app

    UIWindow *topWindow = [[[UIApplication sharedApplication].windows sortedArrayUsingComparator:^NSComparisonResult(UIWindow *win1, UIWindow *win2) {
        return win1.windowLevel - win2.windowLevel;
    }] lastObject];

    UIView *topView = [[topWindow subviews] lastObject];

No comments:

Post a Comment