O'Reilly logo
  • Jeffrey Brendecke thinks this is interesting:

Next, use the library to find a UIWebView and drag it into the space below the label you just moved. After dropping the web view there, use the resize handles to make it fill the rest of the view below the label.


Cover of Beginning iPhone Development, Seventh Edition


iOS 9.2: UIWebView background shows at the top of the webview. To fix:

@implementation DetailViewController
[ … ]

  • (void)viewDidLoad {
    // UIWebview content not at top of view
    // <http://stackoverflow.com/questions/32870129/uiwebview-content-not-at-top-of-view>
    self.automaticallyAdjustsScrollViewInsets = false;