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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -