I have follow this guideline to embed a Cordova web application in my iOs app:

CDVViewController* viewController = [CDVViewController new];
viewController.wwwFolderName = [NSString stringWithFormat:
                                @"/data/volumes/%@",
                                self.book.code];
viewController.startPage = @"index.html";//@"gallery.html";
viewController.useSplashScreen = NO;
viewController.view.frame = self.view.frame;
[self.view addSubview:viewController.view];

all works good but when the CDVViewController load the html page (the test index.html proposed on the howto) the app show infinite input text box, with different strings

enter image description here

any idea?

有帮助吗?

解决方案

problem solved: In the Phonegap library every OS have own cordova-2.0.0.js, I was loading the Android version :)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top