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

ios, iphone, replace

Solution

This should do it:

[str stringByReplacingOccurrencesOfString:@"\"" withString:@""];

Problem

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:@""]; ```

Original source

Related problems