Laurens V Laurens V - 4 months ago 17
iOS Question

Get a padding/margin on top iOS Webview

I had a problem. I want a padding or margin on top above the webview.
This is a picture of the problem:

enter image description here

Who can help me with this problem?

Answer

Way 1 : Select ViewController in Storybord and Deselect automaticallyAdjustsScrollViewInsets.

enter image description here

Way 2 : Write in View Controller

self.automaticallyAdjustsScrollViewInsets = NO ;
Comments