I'm using swift in my project. I want to change a specific range of string with a character. for example I have a string "1234567890" and I want to change characters in range, location 5 and length 3 to "". the out put should be "12345***90".
I see a ways for doing this by converting string to NSString and using this function:
stringByReplacingCharactersInRange
but is there any better way? a swift way :)