Hi, I’m trying to load “HelloHTML5World” project into UIWebView in iOS.
Unfortunately the project doesn’t load.
- I embeded the project into the app ~~> it didn’t work
- I uploaded the project into the remote server~~> it didn’t work either
I’ve tried to load MoonWarriors and it (more or less) WORKED!
UIWebView *web = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 1024, 768)]; [self.view addSubview:web]; NSString* url =
“http://www.cocos2d-x.org/html5-samples/samples/games/MoonWarriors/index.html”;
NSURL* nsUrl = [NSURL URLWithString:url];
NSURLRequest* req = [NSURLRequest requestWithURL:nsUrl];
[web loadRequest:req];@
Anyone has an idea why hello world isn’t working?
Jan