I am trying to return a string from Javascript:
[myWebView stringByEvaluatingJavaScriptFromString:@"myJavaScriptFunction()"];
for short strings, the return is OK.
However, when I return a very long string(say 5000 characters in the string), I couldn’t get anything.
So I am guessing it might due to the NSString Size limitation OR my “var jvString” size limitation.
Please help. Thanks
When the method
stringByEvaluatingJavaScriptFromStringreturnsnil, it means something has gone wrong. This is most likely not because ofNSStringsize limitations, but for one of the following reasons:From the documentation: