Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
iOS UIWebView category to remove the top and bottom shadow that Apple automatically adds to every webview. This is particularly useful if you want to use HTML to create a view in your application that's scrollable and want to use your own self.view.backgroundColor or similar.
Objective-C Ruby
Branch: master

README.markdown

UIWebView+RemoveShadow

iOS UIWebView category to remove the top and bottom shadow that Apple automatically adds to every UIWebView.

This is particularly useful if you want to use HTML to create a view in your application that's scrollable and want to use your own self.view.backgroundColor or similar.

Example Usage

#import "UIWebView+RemoveShadow.h"

Then in your -(void)ViewDidLoad method:

[self.yourWebview makeTransparentAndRemoveShadow];

That's it! Now when your user scrolls up and down on your UIWebView, they won't see the shadows.

Turns this:

With Shadow

Into this:

Without Shadow

Something went wrong with that request. Please try again.