Commit c765c773 authored by Felix Paul Kühne's avatar Felix Paul Kühne

About View: hide webview until it's fully loaded to avoid ugly white artifacts on older devices

parent c1f89d17
......@@ -21,6 +21,7 @@
{
[super viewDidLoad];
self.webView.hidden = YES;
[self.webView loadHTMLString:[NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"About Contents" ofType:@"html"] encoding:NSUTF8StringEncoding error:nil] baseURL:nil];
self.webView.delegate = self;
self.aspenVersion.text = [[NSString stringWithFormat:NSLocalizedString(@"VERSION_FORMAT",@""), [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]] stringByAppendingFormat:@" %@", kVLCVersionCodename];
......@@ -45,6 +46,11 @@
return YES;
}
- (void)webViewDidFinishLoad:(UIWebView *)webView
{
self.webView.hidden = NO;
}
- (void)dismiss
{
[self dismissModalViewControllerAnimated:YES];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment