Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 uiwebview 上画一条线?
在我的应用程序中,当用户在 uiwebview 上触摸手指并移动手指(底层 html 内容是纯文本且不可点击)时,我想要画一条线。
这可能吗?Apple 是否允许在 uiwebview 之上进行自定义绘图?
You can put a UIView above the UIWebView with frame equal to the UIWebView and set its background color to clearColor. Then draw on it.
UIView
UIWebView
frame
clearColor