Adding HTML to iOS I get expected '[' error -


i getting weird error on xcode: expected '[' error , build fails. code

[descweb loadhtmlstring:[nsstring stringwithformat:@"<html><body p style='color:black' text="#000000" face="helveticaneue" size="5">%</body></html>",strtemp] baseurl: nil]; 

this whole code block

[descweb removefromsuperview]; descweb = [[uiwebview alloc]init]; descweb.delegate = self; descweb.tag = 1; [descweb setopaque:no]; [descweb setbackgroundcolor:[uicolor clearcolor]]; descweb.frame = cgrectmake(3, 7, 314, 350); [descweb loadhtmlstring:[nsstring stringwithformat:@"<html><body p style='color:black' text="#000000" face="helveticaneue" size="5">%</body></html>",strtemp] baseurl: nil]; [scrollview addsubview:descweb]; 

thank looking , help

you need add slashes quotation marks.

nsstring *string = @"a quotation mark: \""; nslog(@"%@", string ); 

output:

a quotation mark: "


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -