6

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

Voloda2
  • 12,359
  • 18
  • 80
  • 130

2 Answers2

22

Put a backslash \ before the quotation mark. Example:

NSString *str = @"my string with \"Big string\"";
ySgPjx
  • 10,165
  • 7
  • 61
  • 78
3
string = @"my string with \"Big string\" "; 
x2.
  • 9,554
  • 6
  • 41
  • 62