And you could just use [classesArray componentsJoinedByString:@":"] the flattenArrayIntoString: method is not needed.