Laurens V Laurens V - 1 year ago 128
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 Source

Way 1 : Select ViewController in Storybord and Deselect automaticallyAdjustsScrollViewInsets.

enter image description here

Way 2 : Write in View Controller

self.automaticallyAdjustsScrollViewInsets = NO ;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download