title: Adding a UIViewController In SpriteBuilder COCOS2d 3.4
body: <p>I am trying to add a UIViewcontroller to a SpriteBuilder project so that I can display other UI items, but I am having trouble adding it to the main scene.</p>
  
  <p>I create the view controller, but all I can find to add it is:</p>
  
  <pre><code>[[CCDirector sharedDirector] presentViewController:viewController animated:YES completion:nil];
  </code></pre>
  
  <p>When I try this, Xcode tries to split the line up as it thinks it's 2 lines of code. I guess this is the Obj-C version? can anyone help with the Swift version?</p>
  
  <p>Eventually I want to add a UIMediaPicker to this view controller. Is this the best way to go about it, or can I add the media picker directly to the COCO2D scene with the need for a view controller?</p>
  
  <p>Thanks for all your help.</p>