title: Create SKView programmatically?
body: <p>I like my code to be explicit so I want to remove the <code>storyboard</code> file and create <code>SKView</code> programmatically. </p>
  
  <p>What I have tried so far:</p>
  
  <ol>
  <li>I created a <code>SpriteKit</code> game project in <em>xcode</em>.</li>
  <li>Deleted the storyboard file.</li>
  <li>Deleted sroryboard property from <code>Info.plist</code></li>
  <li><p>Added this code found in an example to the <code>AppDelegate</code>:</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
      _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
      AppViewController *viewController = [[AppViewController alloc] init];
      viewController.edgesForExtendedLayout = UIRectEdgeNone;
      _window.rootViewController = viewController;
      [_window makeKeyAndVisible];
      return YES;
  }
  </code></pre></li>
  <li><p>Added this code to the <code>AppViewController</code>:</p>
  
  <pre><code>-(void) loadView
  {
      self.view = [[SKView alloc] init];
  } 
  </code></pre></li>
  </ol>
  
  <p>The app starts but then crashes on the creation of first sprite with the following warning</p>
  
  <blockquote>
    <p>EXC_BAD_ACCESS</p>
  </blockquote>
  
  <p>I think there should be some good examples of how to do this, but I have not found any for the <code>SpriteKit</code> yet. </p>