When i call stringByEvaluatingJavaScriptFromString to call a javascript method, iphone is "suspended" (can not do any thing on iphone)
NSString *_script = [[NSString alloc] initWithString: @"onTest()"];
[[NSString alloc] initWithString: [webView stringByEvaluatingJavaScriptFromString: _script]];
onTest() method is defined in local resource index.html.
Please tell me what is the reason?