Unlock orientation when viewing picture fullscreen
<p>My <code>UITableViewCell</code> has a <code>UIImageView</code> in it. When the users taps on the <code>UIImageView</code>, an <code>[IDMPhotoBrowser]</code>(<a href="https://github.com/ideaismobile/IDMPhotoBrowser" rel="nofollow">https://github.com/ideaismobile/IDMPhotoBrowser</a>) is presented from the <code>UIImageView</code>. The app is portrait only, however, when viewing the photo fullscreen in IDMPhotoBrowser, I'd like to give the user the ability to rotate to any orientation.</p>

<p>The <code>IDMPhotoBrowser</code> is presented on the <code>UITableViewCell's delegate</code>. The delegate is a regular <code>UIViewController</code> with a <code>UITableView</code>. The delegate is also a contained in a <code>UINavigationController</code> which is contained in a <code>UITabBarController</code>. I have tried many different solutions involving extending <code>IDMPhotoBrowser</code> and trying to add functions that add support for all orientations, I have tried presenting the <code>IDMPhotoBrowser</code> on the <code>UITabBarController</code>, the <code>UINavigationController</code> and <code>the delegate UIViewController</code>. I have also tried flipping a boolean located in the <code>UITabBarController</code> subclass that is then referenced in the function that asks for supported orientations, such that the supported orientations changes in relation to when the app presents the <code>IDMPhotoBrowser</code>. Nothing has worked.</p>

<p>The whole app needs to be constrained to only portrait orientation except for when the user is viewing an <code>IDMPhotoBrowser</code> or an <code>AVPlayerViewController</code> in fullscreen.</p>