在iOS Webview上获得填充/边距

时间:2016-07-15 12:46:47

标签: ios swift padding

我遇到了问题。我想在webview上方填充或边距。 这是问题的图片:

enter image description here

谁可以帮我解决这个问题?

1 个答案:

答案 0 :(得分:8)

方式1:在Storybord中选择ViewController并取消选择automaticAdjustsScrollViewInsets。

enter image description here

方式2:在View Controller中写入

self.automaticallyAdjustsScrollViewInsets = NO ;
相关问题