Allow different orientations for UIDocumentInteractionController
I have a view controller which is in landscape mode only using:

    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
    {
        // Return YES for supported orientations
	return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight);
    }

It presents pdfs using UIDocumentInteractionController in landscape mode which is fine. However my client has asked if the pdfs can be viewed in portrait mode as well. I cannot for the life of me figure out how to allow the UIDocumentInteractionController view to rotate once presented in landscape.

Is this even possible, if so can someone point me in the right direction.

Here is the code I use to create the UIDocumentInteractionController:

    - (void)setupDocumentControllerWithURL:(NSURL *)url
    {
        if (self.docInteractionController == nil)
        {
            self.docInteractionController = [UIDocumentInteractionController interactionControllerWithURL:url];
            self.docInteractionController.delegate = self;
        }
        else
        {
            self.docInteractionController.URL = url;
        }
    }

    - (UIViewController *)documentInteractionControllerViewControllerForPreview:(UIDocumentInteractionController *)interactionController
    {
        return self;
    }

I Then present the pdf using:

    [self setupDocumentControllerWithURL:fileURL];
    [self.docInteractionController presentPreviewAnimated:YES];
Allow different orientations for UIDocumentInteractionController
===

I have a view controller which is in landscape mode only using:

    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
    {
        // Return YES for supported orientations
	return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight);
    }

It presents pdfs using UIDocumentInteractionController in landscape mode which is fine. However my client has asked if the pdfs can be viewed in portrait mode as well. I cannot for the life of me figure out how to allow the UIDocumentInteractionController view to rotate once presented in landscape.

Is this even possible, if so can someone point me in the right direction.

Here is the code I use to create the UIDocumentInteractionController:

    - (void)setupDocumentControllerWithURL:(NSURL *)url
    {
        if (self.docInteractionController == nil)
        {
            self.docInteractionController = [UIDocumentInteractionController interactionControllerWithURL:url];
            self.docInteractionController.delegate = self;
        }
        else
        {
            self.docInteractionController.URL = url;
        }
    }

    - (UIViewController *)documentInteractionControllerViewControllerForPreview:(UIDocumentInteractionController *)interactionController
    {
        return self;
    }

I Then present the pdf using:

    [self setupDocumentControllerWithURL:fileURL];
    [self.docInteractionController presentPreviewAnimated:YES];