当我设置以下内容时,scrollView中的UIWebView无法滚动并且网页被切断。
scrollView.contentInset = UIEdgeInsetsMake(-150,0.0,0,0.0),
但是,当我设置它时效果很好。
_scrollView.contentInset = UIEdgeInsetsMake(150,0.0,0,0.0),
更重要的是,如果我在UIWebView委托函数“viewDiappear”中设置它,它也可以正常工作。
_scrollView.contentInset = UIEdgeInsetsMake(-150,0.0,0,0.0)
这只发生在ios8和ios9中。