|
@@ -28,6 +28,7 @@
|
|
|
[super viewDidLoad];
|
|
|
|
|
|
[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];
|
|
|
self.vlckitVersion.text = [NSString stringWithFormat:NSLocalizedString(@"BASED_ON_FORMAT",@""),[[VLCLibrary sharedLibrary] version]];
|
|
|
|
|
@@ -39,6 +40,11 @@
|
|
|
self.navigationItem.rightBarButtonItem = _dismissButton;
|
|
|
}
|
|
|
|
|
|
+- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
|
|
|
+{
|
|
|
+ return ![[UIApplication sharedApplication] openURL:request.URL];
|
|
|
+}
|
|
|
+
|
|
|
- (void)dismiss
|
|
|
{
|
|
|
[self dismissModalViewControllerAnimated:YES];
|