Incorrect frame when dismissing modally presented view controller
<p>I am presenting a <code>UIViewController</code> using a custom transition and a custom <code>UIPresentationController</code>. The view controller's view does not cover the entire screen, so the presenting view controller is still visible.</p>

<p>Next, I present an instance of <code>UIImagePickerController</code> on top of this view controller. The problem is that when I dismiss the image picker, the presenting view controller's frame covers the entire screen instead of just the portion I want it to cover. The frame specified by <code>frameOfPresentedViewInContainerView</code> in my custom <code>UIPresentationController</code> seems to be completely ignored.</p>

<p>Only if present the image picker with a <code>modalPresentationStyle</code> of <code>UIModalPresentationOverCurrentContext</code> my frames remain intact (which makes sense since no views are removed from the view hierarchy in the first place). Unfortunately that's not what I want. I want the image picker to be presented full screen, which - for whatever reason - seems to mess up my layout. Anything that I might be doing wrong or forgetting here? Any suggestions?</p>