I have an NSString, let’s say “Hello”…
What is the quickest way to fill this string up with commas in between each character? (Including before the first character)
So the returned string would be, “,H,E,L,L,O”
I was just gong to make a for loop and have a variable that goes up 2 each time a comma is added that way it will go past the new comma and the next letter and add a comma then check if that variable divided by 2 is greater than the length of the original string… Is there a better method?
Or you can just append characters to a mutable string: