dollar sign in variable name?

The only legal characters according to the standard are alphanumerics and the underscore. The standard does require that just about anything Unicode considers alphabetic is acceptable (but only as single code-point characters). In practice, implementations offer extensions (i.e. some do accept a $) and restrictions (most don’t accept all of the required Unicode characters). If … Read more

Create multiple numbered variables based on a int

Create a mutable array and loop until you reach the original array’s count, creating a dictionary and adding it to the mutable array on each iteration. Your code should look like this. NSMutableArray *dictionaries = [[NSMutableArray alloc] init]; for (int i = 0; i < doesntContainAnother.count; i++) { [dictionaries addObject:[NSMutableDictionary dictionaryWithObject:[array1 objectAtIndex:i] forKey:[array2 objectAtIndex:i]]]; } … Read more