let sampleString = "Hello world!"
let text = (stringName as NSString).stringByReplacingOccurrencesOfString("world", withString: "")
print(text) // "Hello !"

results matching ""

    No results matching ""