Laurens V Laurens V - 11 months ago 75
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?


Way 1 : Select ViewController in Storybord and Deselect automaticallyAdjustsScrollViewInsets.

enter image description here

Way 2 : Write in View Controller

self.automaticallyAdjustsScrollViewInsets = NO ;