You need to send makeKeyAndVisable to any window you want to add subview to. For instance:
[[self window] makeKeyAndVisible];
[[[UIApplication sharedApplication] keyWindow] addSubview:view];
A key window is a window that will receive user interaction. You can check out apple docs here for makeKeyAndVisable.
source
share