diff --git a/platform-darwin/Source/iOS/MPSiteCell.m b/platform-darwin/Source/iOS/MPSiteCell.m index c912b8c0..66c4d4ef 100644 --- a/platform-darwin/Source/iOS/MPSiteCell.m +++ b/platform-darwin/Source/iOS/MPSiteCell.m @@ -435,7 +435,7 @@ }]; } -- (IBAction)doContent:(id)sender { +- (IBAction)doContent:(UIButton *)sender { [UIView animateWithDuration:.2f animations:^{ self.contentButton.selected = YES; diff --git a/platform-darwin/Source/iOS/MPWebViewController.m b/platform-darwin/Source/iOS/MPWebViewController.m index 833dc582..5ec75c45 100644 --- a/platform-darwin/Source/iOS/MPWebViewController.m +++ b/platform-darwin/Source/iOS/MPWebViewController.m @@ -98,12 +98,12 @@ decisionHandler:(void ( ^ )(WKNavigationActionPolicy))decisionHandler { #pragma mark - Actions -- (IBAction)action:(id)sender { +- (IBAction)action:(UIBarButtonItem *)sender { UIAlertController *controller = [UIAlertController alertControllerWithTitle:self.webView.URL.host message:self.webView.URL.absoluteString preferredStyle:UIAlertControllerStyleActionSheet]; - [controller.popoverPresentationController setSourceView:sender]; + [controller.popoverPresentationController setBarButtonItem:sender]; [controller addAction:[UIAlertAction actionWithTitle:@"Safari" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) { [UIApp openURL:self.webView.URL]; }]]; diff --git a/platform-darwin/Source/iOS/Storyboard.storyboard b/platform-darwin/Source/iOS/Storyboard.storyboard index ef7ec33d..8569a294 100644 --- a/platform-darwin/Source/iOS/Storyboard.storyboard +++ b/platform-darwin/Source/iOS/Storyboard.storyboard @@ -69,7 +69,7 @@ - + @@ -2241,7 +2241,7 @@ Suspendisse potenti. Etiam ut nisi id augue tempor ultrices et sit amet sapien. - + @@ -2256,7 +2256,7 @@ Suspendisse potenti. Etiam ut nisi id augue tempor ultrices et sit amet sapien. - +