Presenting View Controller on iPad only allows .Popover
<p>I have an iPhone application that I am trying to make universal. I have this code:</p>

<pre class="lang-swift prettyprint-override"><code>let documentMenu = UIDocumentMenuViewController(documentTypes: [kUTTypeContent as String], inMode: .Import)
documentMenu.modalPresentationStyle = .FormSheet
documentMenu.delegate = self
self.presentationContext.presentViewController(documentMenu, animated: true, completion: nil)
</code></pre>

<p><code>self.presentationContext</code> is just a view controller passed into the class.</p>

<p>Every time this code is executed, this error occurs:</p>

<blockquote>
  <p>Your application has presented a UIDocumentMenuViewController (). In its current trait environment, the modalPresentationStyle of a UIDocumentMenuViewController with this style is UIModalPresentationPopover. You must provide location information for this popover through the view controller's popoverPresentationController. You must provide either a sourceView and sourceRect or a barButtonItem.  If this information is not known when you present the view controller, you may provide it in the UIPopoverPresentationControllerDelegate method -prepareForPopoverPresentation.</p>
</blockquote>

<p>I am not sure what's going on. I have even tried to set the <code>sourceView</code> and <code>sourceRect</code>, to which does stop the error, however, it sticks the <code>DocumentMenuViewController</code> into a popover, I do not what that. I need this modally presented in the center of the screen. Any help is appreciated.</p>