title: Xcode 6 without Storyboard
body: <p>I am struggling to remove storyboards from Xcode6, I have tried the following questions : </p>
  
  <p><a href="https://stackoverflow.com/questions/17234172/xcode-5-without-storyboard-and-arc">Xcode 5 without Storyboard and ARC</a> and <a href="https://stackoverflow.com/questions/24973521/xcode-6-template-without-storyboards">Xcode 6 - Template without Storyboards</a></p>
  
  <p>But the output I get by following the above approaches is : </p>
  
  <p><img src="https://i.imgur.com/DvIjfWp.png" alt="Output in iOS 8 Simulator"></p>
  
  <p>I have removed Main.storyboard file, removed entries of launch image and storyboard from info.plist. </p>
  
  <p>I am using Objective-C. How can I adjust the view frame to the whole iPhone screen ?</p>
  
  <p>here is the code I am using in didFinishLaunchingWithOptions </p>
  
  <pre><code>CGRect screenBounds = [[UIScreen mainScreen] bounds];
  
  UIWindow *window = [[UIWindow alloc] initWithFrame:screenBounds];
  
  ViewController *viewController = [[ViewController alloc] init];
  [window setRootViewController:viewController];
  
  [window makeKeyAndVisible];
  
  [self setWindow:window];
  return YES;
  </code></pre>