UIWindow* window = [[UIApplication sharedApplication].delegate.window; [window addSubview: your-overlayview];