UIWebViewのscrollViewに配置したカスタムUIViewサブクラスインスタンスheaderViewがあります。このビューを初期化するときに、このビューの背景色を白に設定しました。
self.backgroundColor = [UIColor whiteColor];
これは私がwebViewのscrollViewにそれを置く方法です:
webView.scrollView.contentInset = UIEdgeInsetsMake(headerView.bounds.size.height, 0, 0, 0);
CGRect frame = headerView.frame;
frame.origin.y -= headerView.bounds.size.height;
headerView.frame = frame;
//webView.scrollView.backgroundColor = [UIColor whiteColor];
[webView.scrollView addSubview:headerView];
行のコメントを外すと、headerViewの背景が白になります。しかし、コメントすると、背景色はwebViewのscrollViewの背景色と同じです。そのため、initメソッドでビューの背景色を変更しても機能しないようです。