Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Classes/en.lproj/AboutViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ - (void)viewDidLoad
NSString *path = [[NSBundle mainBundle] bundlePath];
NSURL *baseURL = [NSURL fileURLWithPath:path];
[webView loadData:htmlData MIMEType:@"text/html" textEncodingName:@"UTF-8" baseURL:baseURL];

//Remove the shadow from the webview.
//Code from https://github.com/markrickert/UIWebView-RemoveShadow
for(UIScrollView* webScrollView in [webView subviews]) {
if ([webScrollView isKindOfClass:[UIScrollView class]]) {
for(UIView* subview in [webScrollView subviews]) {
if ([subview isKindOfClass:[UIImageView class]]) {
((UIImageView*)subview).image = nil;
subview.backgroundColor = [UIColor clearColor];
}
}
}
}
webView.backgroundColor = [UIColor clearColor];
webView.opaque = NO;
}
}

Expand Down