We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cf08b5a + 2d54c91 commit 5be38e4Copy full SHA for 5be38e4
SVWebViewController/SVWebViewController.m
@@ -267,6 +267,17 @@ - (void)actionButtonTapped:(id)sender {
267
[dc presentOptionsMenuFromRect:self.view.bounds inView:self.view animated:YES];
268
} else {
269
UIActivityViewController *activityController = [[UIActivityViewController alloc] initWithActivityItems:@[url] applicationActivities:activities];
270
+
271
+#ifdef __IPHONE_8_0
272
+ if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_7_1 &&
273
+ UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
274
+ {
275
+ UIPopoverPresentationController *ctrl = activityController.popoverPresentationController;
276
+ ctrl.sourceView = self.view;
277
+ ctrl.barButtonItem = sender;
278
+ }
279
+#endif
280
281
[self presentViewController:activityController animated:YES completion:nil];
282
}
283
0 commit comments