<ol><li>Use the next line after adding the subview:</li></ol><pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> self.view.window.rootViewController.view.frame = [UIScreen mainScreen].applicationFrame;
</pre>
<div><ol><li>Write in application delegate:</li></ol></div><div><pre style="background-color: #f0f0f0; border: 1px dashed rgb(204, 204, 204); font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 646.4666748046875px;"> viewController.view.frame = window.screen.applicationFrame;
</pre>
[window addSubview: viewController.view];
Source 1</div>
Source 2
read