Nextrek
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
//
// InfoVC.m
// Foresta
//
// Created by Fabrizio on 18/12/12.
// Copyright (c) 2012 Odyssey. All rights reserved.
//
#import "InfoVC.h"
@interface InfoVC ()
@end
@implementation InfoVC
@synthesize version;
@synthesize titleLabel;
@synthesize backBtn;
@synthesize creativeWebView;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad {
[super viewDidLoad];
titleLabel.text = APP_NAME;
version.text = [NSString stringWithFormat:@"v. %@", APP_VERSION];
[creativeWebView loadRequest:[NSURLRequest requestWithURL:CreativeCommons]];
}
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
if(webView == creativeWebView && [DATAMANAGER testConnection] && navigationType == UIWebViewNavigationTypeLinkClicked) {
[[UIApplication sharedApplication] openURL:[request URL]];
}
return YES;
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
}
#pragma mark - IBActions
- (IBAction) close {
[self dismissModalViewControllerAnimated:YES];
}
@end
|
Revision |
Author |
Commited |
Message |
67
|
FAquili
|
Thu 23 Jan, 2014 14:31:55 +0000 |
Emmanuele Rossi apps - mostri - trikster - trivagolando |