I wanted to add a view in UIWindow with following code:
UIWindow
AppDelegate *delegate = (AppDelegate *)[UIApplication sharedApplication].delegate; UIWindo
You can add view using the following
[[[UIApplication sharedApplication] keyWindow] addSubview:YOUR_VIEW];