UIDocumentInteractionController not appearing on iPad but working on iPhone

ios, ios6, ipad, uidocumentinteraction

Solution

On iPad UIDocumentInteractionController appearing like Pop Up Try something like this:

-(void)shareClick:(UIButton*)sender {
   /*some code*/
   CGRect rectForAppearing = [sender.superview convertRect:sender.frame toView:self.view];
   [interactionController presentOptionsMenuFromRect:rect inView:self.view animated:YES];
}

Problem

I'm trying to display a `UIDocumentInteractionController` on my app. Everything is working perfectly on iPhone, but nothing is happening on iPad. Here is my code: ``` interactionController = [UIDocumentInteractionController interactionControllerWithURL:imageFile]; interactionController.UTI = @"com.instagram.photo"; interactionController.annotation = [NSDictionary dictionaryWithObject:[self commentForInstagram] forKey:@"InstagramCaption"]; [interactionController presentOpenInMenuFromRect:self.view.frame inView:self.view animated:YES]; ``` `interactionController` is a strong reference to an instance, and `imageFile` exists. On iPhone, it brings up the 'Open With..' dialog and Instagram is present. On iPad, absolutely nothing happens when the above code runs. Yes, I do have Instagram installed and working on my iPad. What could be the reason that nothing is happening when the code is executed? `self.view` and `self.view.frame` are valid objects (tested on debug). Thanks, Can.

Original source