I'm having an issue with UIWebView when loading a simple html. My code is as follows:
NSString *path = [[NSBundle mainBundle] bundlePath];
NSURL *baseURL = [NSURL fileURLWithPath:path];
NSString *imageHTML = [NSString stringWithFormat:@"%@%@%@", @"<html><body><img src='", url, @"' alt='URL not found'></body></html>"];
[webView loadHTMLString:imageHTML baseURL:baseURL];
When I deploy this code directly from XCode, my image displays as I expect. However, when I compile the ipa and install the application via the Worklight Application Center, the code does not run, the method webViewDidFinishLoad never occurs. I'm not sure what's wrong here any ideas? The alt does not appear either.
Worklight version 6.1.0-00-20131219-1900, iOS6 and iOS7
EDIT: The same problem occurs without an image
@"<html><body>HelloWorld</body></html>"