I have the following array:
["Main", "Category 1", "Category2", "Category 3"]
Is there a way to make a copy of this array, but make all of the strings lowercase and replace the spaces with a dash ("-")?
I know I can do this for the replacing of spaces, but I do not know how to iterate over the array.
[string stringByReplacingOccurrencesOfString:@" " withString:@"-"];
My end goal is to have an array that looks like this:
["main", "category-1", "category2", "category-3"]
Thank you in advance for the help!