Commit 1d0679ed authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

About view: fix white flash prominently shown on older devices

parent 08f04d9b
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
{ {
[super viewDidLoad]; [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 loadHTMLString:[NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"About Contents" ofType:@"html"] encoding:NSUTF8StringEncoding error:nil] baseURL:nil];
self.webView.delegate = self; self.webView.delegate = self;
self.aspenVersion.text = [[NSString stringWithFormat:NSLocalizedString(@"VERSION_FORMAT",@""), [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]] stringByAppendingFormat:@" %@", kVLCVersionCodename]; self.aspenVersion.text = [[NSString stringWithFormat:NSLocalizedString(@"VERSION_FORMAT",@""), [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]] stringByAppendingFormat:@" %@", kVLCVersionCodename];
...@@ -51,7 +50,18 @@ ...@@ -51,7 +50,18 @@
- (void)webViewDidFinishLoad:(UIWebView *)webView - (void)webViewDidFinishLoad:(UIWebView *)webView
{ {
self.webView.hidden = NO; webView.alpha = 0.;
CGFloat alpha = 1.;
void (^animationBlock)() = ^() {
webView.alpha = alpha;
};
void (^completionBlock)(BOOL finished) = ^(BOOL finished) {
webView.hidden = NO;
};
[UIView animateWithDuration:1. animations:animationBlock completion:completionBlock];
} }
- (void)dismiss - (void)dismiss
......
...@@ -160,11 +160,10 @@ IEvDvGhuZSwgR2xlYiBQaW5pZ2luLCBhbmQgSmVhbi1CYXB0aXN0ZSBLZW1wZg</string> ...@@ -160,11 +160,10 @@ IEvDvGhuZSwgR2xlYiBQaW5pZ2luLCBhbmQgSmVhbi1CYXB0aXN0ZSBLZW1wZg</string>
</object> </object>
<object class="IBUIWebView" id="804382523"> <object class="IBUIWebView" id="804382523">
<reference key="NSNextResponder" ref="191373211"/> <reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">274</int> <int key="NSvFlags">-2147483374</int>
<string key="NSFrame">{{84, 220}, {600, 747}}</string> <string key="NSFrame">{{84, 220}, {600, 747}}</string>
<reference key="NSSuperview" ref="191373211"/> <reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/> <reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:9</string> <string key="NSReuseIdentifierKey">_NS:9</string>
<object class="NSColor" key="IBUIBackgroundColor" id="115530952"> <object class="NSColor" key="IBUIBackgroundColor" id="115530952">
<int key="NSColorSpace">3</int> <int key="NSColorSpace">3</int>
......
...@@ -165,11 +165,10 @@ IEvDvGhuZSwgR2xlYiBQaW5pZ2luLCBhbmQgSmVhbi1CYXB0aXN0ZSBLZW1wZg</string> ...@@ -165,11 +165,10 @@ IEvDvGhuZSwgR2xlYiBQaW5pZ2luLCBhbmQgSmVhbi1CYXB0aXN0ZSBLZW1wZg</string>
</object> </object>
<object class="IBUIWebView" id="384092769"> <object class="IBUIWebView" id="384092769">
<reference key="NSNextResponder" ref="191373211"/> <reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">274</int> <int key="NSvFlags">-2147483374</int>
<string key="NSFrame">{{0, 208}, {320, 340}}</string> <string key="NSFrame">{{0, 208}, {320, 340}}</string>
<reference key="NSSuperview" ref="191373211"/> <reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/> <reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:9</string> <string key="NSReuseIdentifierKey">_NS:9</string>
<object class="NSColor" key="IBUIBackgroundColor"> <object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int> <int key="NSColorSpace">3</int>
......
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