cocoa touch - How to put escape sequence in Objective C? -
i have small code:
nsstring *size = [labelnewcontent stringbyevaluatingjavascriptfromstring:@"return math.max( document.body.scrollheight, document.documentelement.scrollheight, document.body.offsetheight, document.documentelement.offsetheight, document.body.clientheight, document.documentelement.clientheight );"];
the problem xcode doesnt recognize parentheses , commas whole string.
replace code
nsstring *size = [labelnewcontent stringbyevaluatingjavascriptfromstring:@"return %f",math.max( document.body.scrollheight, document.documentelement.scrollheight, document.body.offsetheight, document.documentelement.offsetheight, document.body.clientheight, document.documentelement.clientheight )];
hope you.
Comments
Post a Comment