I wanted to add a view in UIWindow with following code:
UIWindow
AppDelegate *delegate = (AppDelegate *)[UIApplication sharedApplication].delegate; UIWindo
i think you are missing this. check once.
[self.window makeKeyAndVisible];