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!

Answers


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


Need Your Help

SQL question: excluding records

sql nexusdb sql-match-all

I have a database (NexusDB (supposedly SQL-92 compliant)) which contains and Item table, a Category table, and a many-to-many ItemCategory table, which is just a pair of keys. As you might expect, ...

Pretty URLs with hashes (md5)

hash md5

In our web application we display a list of pulses, but for linking and such we make every pulse uniquely available. In our Couch DB we are giving every pulse a unique id by md5'ing their unique

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.