Remove UIWebView Shadow?

后端 未结 15 1179
慢半拍i
慢半拍i 2020-12-02 11:12

Does anyone know if its possible to remove the shadow that is placed on the UIWebView window?

Example: http://uploadingit.com/files/1173105_olub5/shadow.png

15条回答
  •  独厮守ぢ
    2020-12-02 12:03

    I looked at the class properties and didn't find anything there but I can think of two "cover up" strategies:

    1. You can use another view (parent of the web view) to clip the webview bounds.
    2. You can add another view on top of the webview to cover the needed area with a color that matches the background, you can use an uiimage with a transparent area in the center.

    By the way I don't like this standard background of the table views :P, but changing it can be a pain in the ass :P

提交回复
热议问题