UIWebView shows white bar at top and bottom when scrolling

I have a UIWebView on top of a UIImage. When I scroll on the UIWebView, two white bars appear. 1, at the very top of the iPad window (ie the top of the UIImage, which is just a background image) and 2, at the top of the UIWebView. The UIIMage is in a XIB but the WebView is done programmatically as shown here:

mainWebView = [[[CustomWebview alloc] initWithFrame:CGRectMake(59, 0, 650, 1024)] retain];
[(UIScrollView*)[mainWebView.subviews objectAtIndex:0] setShowsHorizontalScrollIndicator:NO];
[(UIScrollView*)[mainWebView.subviews objectAtIndex:0] setShowsVerticalScrollIndicator:NO];

[mainWebView        setOpaque:NO];
[mainWebView        setBackgroundColor:[UIColor clearColor]];
[backgroundImage    addSubview:mainWebView];
[mainWebView        setDelegate:self];

The same pattern repeats itself at the bottom of the iPad. One white bar at the bottom of the WebView and another at the very bottom of the UIImage.

See photos and a 20 second video: (can't take screenshots while scrolling)

20 second video:http://dl.dropbox.com/u/1392139/IMG_0601.MOV

I'd love to find a fix for this, already spent many hours on it and it's my last bug to fix in order to ship!


Turns out that using a customwebview was giving me problems. I removed the custom class and it fixed the problem.

Need Your Help

Comparing en IEnumerable<T> to IEnumerable<IEnumerable<T>> efficiently

c# .net linq lambda

I have an IEnumerable collection of classes, and a second IEnumerable collection, containing a function that returns the same. For example:

Are there any better command prompts for Windows?

windows command-line cmd

For some reason the Windows command prompt is "special" in that you have to go to a properties dialog to resize it horizontally rather than just dragging the corner of the window like every other a...