Recreating "presentModalViewController"?
<p>I'm using a <code>UIImagePickerController</code> set up as a camera with an overlay view.</p>

<p>I want to present a modal view controller on top on this. When I do so, though, the camera view "closes". This would be okay, but when I dismissModalViewControllerAnimated, I see the closed camera, and there is a long and annoying delay before it reopens. I would like to avoid this.</p>

<p>Unless someone has a better approach, I am planning to simply perform the transition that <code>presentModalViewController</code> would perform myself. However, if I take my modal view from it's controller and add it as a sub view of the camera overlay view, like this:</p>

<p><code>[[_imagePickerController cameraOverlayView] addSubview: [viewController view]];</code></p>

<p>then the modal view doesn't show up at all, and the application crashes with an <code>EXC_BAD_ACCESS</code> in my "modal" view's layoutSubViews.</p>

<p>Where as, if I present it with <code>presentModalViewController</code>, everything works fine. Clearly, <code>presentModalViewController</code> is also doing some other stuff. Does anyone know what this is so that I can recreate it?</p>
