moved javascript to own files
This commit is contained in:
parent
705ce5d3f3
commit
1e92b50515
7 changed files with 752 additions and 745 deletions
|
@ -53,6 +53,7 @@
|
|||
NSString *path = [[NSBundle mainBundle] resourcePath];
|
||||
NSURL *url = [NSURL fileURLWithPath:path];
|
||||
NSString *index_string = [NSString stringWithContentsOfFile:[NSString stringWithFormat:@"%@/index.html", path] encoding:NSUTF8StringEncoding error:nil];
|
||||
NSLog(@"%@", url);
|
||||
[[webView mainFrame] loadHTMLString:index_string baseURL:url];
|
||||
|
||||
viewDelegate = [[ViewDelegate alloc] initWithWebView:webView];
|
||||
|
|
Reference in a new issue