Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8587143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:29:47+00:00 2026-06-11T22:29:47+00:00

I am working within an Universal app supporting both iPhone and iPad. I currently

  • 0

I am working within an Universal app supporting both iPhone and iPad. I currently have the use for a UIDocumentInteractionController to present a PDF and offer some options on that PDF (most importantly Print functionality). Everything appears to work on the iPad flawlessly with the overview coming up and the RightBarButtonItem in the Preview properly allowing my to print. However, working with the iPhone, when I click the RightBarButtonItem I receive the error:

Presenting action sheet clipped by its superview. Some controls might not respond to touches. On iPhone try -[UIActionSheet showFromTabBar:] or -[UIActionSheet showFromToolbar:] instead of -[UIActionSheet showInView:].

Resolving this with typical action sheets is relatively simple:

ActionSheet.ShowFromTabBar(this.TabBarController.TabBar);
ActionSheet.ShowFromToolbar(this.NavigationController.ToolBar);

However with the cooked in document controller, I’m finding it hard to grasp how to do it. The code for the interaction controller is very standard compared to other implementations I’ve found on here so I’m sure there is something small I am missing. Here is the implmentation:

invoiceInteractionController = UIDocumentInteractionController.FromUrl(url);
invoiceInteractionController.Delegate = new UIDocumentInteractionControllerDelegateClass(this);

InvokeOnMainThread(delegate{
    if (!DeviceHelper.IsIPhone())
        invoiceInteractionController.PresentOptionsMenu(NavigationItem.RightBarButtonItem, true);
    else {
        invoiceInteractionController.PresentPreview(true);
}
});

For now if the device is iPhone I am just skipping right to the preview as you can see in this code. The problem is within the preview controller when the upper right bar button item is pressed which throws the aforementioned issue. However, as an aside, replacing PresentPreview() with:

invoiceInteractionController.PresentOptionsMenu(new RectangleF(320,320,0,500), this.NavigationController.Toolbar, true);

This also evokes the same error.

I’m almost wondering if it has something to do with my delegate class which is as follows:

public class UIDocumentInteractionControllerDelegateClass : UIDocumentInteractionControllerDelegate
{
    UIViewController viewC;

    public UIDocumentInteractionControllerDelegateClass (UIViewController controller)
    {
        viewC = controller;
    }

    public override UIViewController ViewControllerForPreview (UIDocumentInteractionController controller)
    {
        return viewC;
    }

    public override UIView ViewForPreview (UIDocumentInteractionController controller)
    {
        return viewC.View;
    }

    public override RectangleF RectangleForPreview (UIDocumentInteractionController controller)
    {
        return viewC.View.Frame;
    }
}

As always, any help is much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:29:49+00:00Added an answer on June 11, 2026 at 10:29 pm

    I’m going to essentially mark this as resolved as it doesn’t cause the app or controller not to work. Eventually I believe I will have to just replace the whole thing with my own roll of the controller as it isn’t really friendly to branding / skinning. It would be really nice if it offered the ability to present from the tab bar.

    One thing I did notice is when presenting it within navigation controllers within a tabbar that is defined in Interface Builder, the doc controller will throw the same warning but just never appear. Creating the tabbar programmatically and explicitly defining the the RectangleF will allow the controller to show up but still throws the warning.

    My best guess is PresentPreview(true) assumes it should present from the control that called the event which unfortunately is a button in an action sheet presented from the right bar button. I am open to any more suggestions to get the warning to dissapear.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi all Working on a universal build for an iphone/ipod/ipad app. I was trying
I am working within an intranet environment. We have both a production and development
I am working within a Ruby on Rails app. I have a loop that
I am currently working within the confines of sharepoint 2007 and have some code
I'm working within a platform that I do not have server side access to
I am currently working within a WPF user control (the root element of my
I'm working within zend forms. Currently this is how it looks: I want to
Attempting/struggling to get registration and sign-up working within an active admin project. I have
I have a third party library which I finally have working within my MonoTouch
I have been working within another question on this site and have almost completed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.