Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove ("") double quotes char in NSString in iphone? [duplicate]

Possible Duplicate:
How can I remove quotes from an NSString?

Currently i am working in iphone application, Here i am using NSXmlparser to parse xml file, the values comes city name is "Melbourne" in NSString, i want to remove left and right double quotes, please any one help these

Thanks

Here i tried:

myString = @"Melbourne";
NSString *Replace =[myString stringByReplacingOccurrencesOfString:@""" withString:@""];
like image 587
SampathKumar Avatar asked Nov 17 '25 20:11

SampathKumar


1 Answers

This should do it:

[str stringByReplacingOccurrencesOfString:@"\"" withString:@""];
like image 175
Ivor Prebeg Avatar answered Nov 19 '25 10:11

Ivor Prebeg