Change customModalViewController.view's superview from rootViewController.view to its window, in order to comply with default-modal's view-hierarchy (orientation not supported).