试试这个if ( [activityVC respondsToSelector:@selector(popoverPresentationController)] ) { activityVC.popoverPresentationController.sourceView = self.view; }