webkit disable scrolling in swift

webkit disable scrolling in swift

Als u niet wilt dat de webview scrolbaar is, kunt u deze eenvoudig uitschakelen met de volgende regels code.

<span class="s2">webKitView1.</span>scrollView<span class="s1">.</span>isScrollEnabled<span class="s1"> = <b>false</b></span>
<span class="s1">
<span class="Apple-converted-space">&nbsp; &nbsp; &nbsp; </span></span>
<span class="s2">webKitView1.</span>scrollView<span class="s1">.</span>panGestureRecognizer<span class="s1">.</span>isEnabled <span class="s1">=</span> <span class="s1"><b>false
</b></span>
<span class="s2">webKitView1.</span>scrollView<span class="s1">.</span>bounces<span class="s1"> = <b>false</b></span>
<figure><img width="676" height="124" class="alignleft wp-image-541" src="http://www.exoda.de/wp-content/uploads/Bildschirmfoto-2019-10-05-um-13.29.41-300x55.png" alt=""></figure>

Over de auteur

Tobias Stephan administrator

Geef een reactie