作者:zf72ayw | 来源:互联网 | 2023-05-17 09:24
Ivetriedthefollowing:我尝试过以下方法:html,body,div,p,a,table,img{-webkit-user-select:none!
I've tried the following:
我尝试过以下方法:
html, body, div, p, a, table, img
{
-webkit-user-select: none !important;
user-select: none !important;
-webkit-user-callout: none !important;
-webkit-touch-callout: none !important;
}
This works for my uiwebview that takes up the whole screen, but for my uiwebview that does not (adbannerview above), it pushes the magnifying glass above the uiwebview over the adbannerview.
这适用于占据整个屏幕的uiwebview,但对于我没有的uiwebview(上面的adbannerview),它将uiwebview上方的放大镜推到了adbannerview上。
Does anyone have any ideas that don't involve disabling UILongPressGestureRecognizers
on uiwebview's subviews as suggested in this answer?
有没有任何想法不涉及在uiwebview的子视图中禁用UILongPressGestureRecognizers,如本答案所示?
2 个解决方案