开发者

How can I add quotation marks to NSString? [duplicate]

This question already has answers here: 开发者_开发知识库 Is it possible to include a quotation mark as part of an nsstring? (7 answers) Closed 8 years ago.

How can I add quotation marks to NSString ? for example, string = @"my string with "Big string" ";


Put a backslash \ before the quotation mark. Example:

NSString *str = @"my string with \"Big string\"";


string = @"my string with \"Big string\" "; 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜