Yes, you can include a quotation mark in an NSString literal using the backslash to escape it. A backslash followed by a quotation mark simply inserts the quotation mark into the string. If the string is a literal string, then you can use the escape character to add a quotation mark inside a string..With a backslash before the double quote you want to insert in the String you can include a double quotation mark ” inside of a multiline string literal without .Hey,. In Swift, sometimes we need to use double quotes ” ” into our strings. Let s see how to use it with an example let alert_sentence .I want the string to have this value params={“login” “username”} According to google, I have to use the escape char before the quotation well i found the problem. xcode shows me different versions. So I suppose the .
0 Komentar