Source is button item, not a view.
This commit is contained in:
		@@ -435,7 +435,7 @@
 | 
			
		||||
    }];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
- (IBAction)doContent:(id)sender {
 | 
			
		||||
- (IBAction)doContent:(UIButton *)sender {
 | 
			
		||||
 | 
			
		||||
    [UIView animateWithDuration:.2f animations:^{
 | 
			
		||||
        self.contentButton.selected = YES;
 | 
			
		||||
 
 | 
			
		||||
@@ -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];
 | 
			
		||||
    }]];
 | 
			
		||||
 
 | 
			
		||||
@@ -69,7 +69,7 @@
 | 
			
		||||
                                        </collectionViewFlowLayout>
 | 
			
		||||
                                        <cells>
 | 
			
		||||
                                            <collectionViewCell opaque="NO" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="MPAvatarCell" id="Zab-uQ-uk9" customClass="MPAvatarCell">
 | 
			
		||||
                                                <rect key="frame" x="80" y="115" width="215" height="667"/>
 | 
			
		||||
                                                <rect key="frame" x="80" y="114.5" width="215" height="667"/>
 | 
			
		||||
                                                <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
 | 
			
		||||
                                                <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
 | 
			
		||||
                                                    <rect key="frame" x="0.0" y="0.0" width="215" height="667"/>
 | 
			
		||||
@@ -2241,7 +2241,7 @@ Suspendisse potenti. Etiam ut nisi id augue tempor ultrices et sit amet sapien.
 | 
			
		||||
                                <dataDetectorType key="dataDetectorTypes" link="YES"/>
 | 
			
		||||
                            </textView>
 | 
			
		||||
                            <toolbar contentMode="scaleToFill" barStyle="black" translatesAutoresizingMaskIntoConstraints="NO" id="WmH-JB-jp2">
 | 
			
		||||
                                <rect key="frame" x="0.0" y="769" width="414" height="44"/>
 | 
			
		||||
                                <rect key="frame" x="0.0" y="764" width="414" height="49"/>
 | 
			
		||||
                                <items>
 | 
			
		||||
                                    <barButtonItem systemItem="compose" id="BSV-3i-01h">
 | 
			
		||||
                                        <connections>
 | 
			
		||||
@@ -2256,7 +2256,7 @@ Suspendisse potenti. Etiam ut nisi id augue tempor ultrices et sit amet sapien.
 | 
			
		||||
                                    <barButtonItem systemItem="flexibleSpace" id="Lp4-ss-KxI"/>
 | 
			
		||||
                                    <barButtonItem style="plain" id="aMS-HH-mnE">
 | 
			
		||||
                                        <segmentedControl key="customView" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="bar" selectedSegmentIndex="0" id="lxp-wx-uCy">
 | 
			
		||||
                                            <rect key="frame" x="267" y="6" width="127" height="32"/>
 | 
			
		||||
                                            <rect key="frame" x="267" y="11" width="127" height="32"/>
 | 
			
		||||
                                            <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
 | 
			
		||||
                                            <segments>
 | 
			
		||||
                                                <segment title="Normal"/>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user