I want to fetch JavaScript return value in my ViewController,
The problem is that, if there is small amount of data like String, I'm getting it.
But if there is large data like JSON object,It's showing nil.
When I call same JS function in Safari > Develop > iOS simulator, it's giving JSON object after 1-2 secs.
Here is my code:
var value = IBwebView.stringByEvaluatingJavaScriptFromString("get_small_string()")
println(value) //Printing value
but this prints nil,
var value = IBwebView.stringByEvaluatingJavaScriptFromString("get_JSON()")
println(value) //Printing nil
anyone knows how can I fetch big size JS return value in iOS object?
This solve my problem,