I have a javascript file in my iOS app that I need to update frequently and I'd like to be able to do that from a server rather than submitting new app updates every time I update the javascript file. I have filezilla, an account with dreamhost and a website I could host the file on, if that helps. I also have a Parse account.
I have this code in my app but I would like to load this from somewhere other than inside the app so that I can easily update it:
NSString *jsString = [NSString stringWithContentsOfURL:[[NSBundle mainBundle] URLForResource:@"GPS" withExtension:@"js"] encoding:NSUTF8StringEncoding error:nil]; [_viewWeb stringByEvaluatingJavaScriptFromString:jsString];
Any help would be greatly appreciated!
Thank you,
- Creagen