Flipkart Search

Cari Blog Ini

Khamis, 29 Julai 2010

Put double quotes in NSString

Here is a simple way to put  double quotes in your NSString

NSString *myString = @"I say \"Hello!\"";
The output will be
I say "Hello!"

4 ulasan:

Tanpa Nama berkata...

Wow you passed CS 101 you fucking Indiot moron. Now you're ready for a job in Silicon Valley!

Mobile Development berkata...

so you are pretty much escaping the string with a back slash. Interesting.

Tanpa Nama berkata...

What's up with Anonymous? What an idiot

Tanpa Nama berkata...

Whats an Indiot? Is that an idiot indian?