I have to initialize string as \"Rose\" including Quotation Mark. How to write \" in our string?
NSString *yourString = @"\"Rose\"";
Use the escape character: \
NSString *r = @"\"Rose\"";
You can find additional information about Escape character and String literal.
Escape it with a backslash:
@"\"Rose\""
Escape the quotation marks.
Example:
NSString *str = @"\"Rose\"";
Escape the double quote with \
NSString *yourString = @"\"Rose\"";
In swift 5, you can write with a hashtag :
let raw = #"You can create "raw" strings in Swift 5."#
Output :
You can create "raw" strings in Swift 5.