Hi,
I was having some problems with initialising an NSMutableDictionary so I turned to the documentation. There, I found this example:
which I then tried to compile. I got the following error - the same one as the error I was getting for my code:
Any ideas what's going on?
Cheers,
Tom
I was having some problems with initialising an NSMutableDictionary so I turned to the documentation. There, I found this example:
Code:
NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys:@"value1", @"key1", @"value2", @"key2", nil];
which I then tried to compile. I got the following error - the same one as the error I was getting for my code:
error: initalizor element is not constant
Any ideas what's going on?
Cheers,
Tom