Tried, but failed, to fix bug when IDMPhotoBrowser rotate, presenting viewController doesn’t rotate. Setting UIModalPresentationCurrentContext to applicationRootViewController is the responsible of the problem.