I use this to βfindβ a window:
UIWindow *window = [[[UIApplication sharedApplication] delegate] window]; [window addSubview:myView];
This also worked for me, but it is a bit ugly:
[self.navigationController.tabBarController.view addSubview:myView]
To explain the second, I had to βfollowβ the controllers to the βtopβ view. (My application has a tab bar with a navigation controller inside the current tab.)
source share