``` if ( [activityViewController respondsToSelector:@selector(popoverPresentationController)] ) { activityViewController.popoverPresentationController.sourceView = parentView; } ```