Shin Biao Shin Biao - 1 year ago 71
iOS Question

how to print a string contains @ and " in objective c

For example:I want to write

by Objective c,but it get error.
Does anyone know how to print a string containing

Answer Source

You can print @"@^@" this like,


If you want to print " then you need to add back slash before it like, \"

Hope this will help :)