I want to add an array to a key in nsdictionary. Such as each key is a question and each questions has multiple answers.
Question1 = [Answer1], [Answer2] , [Answer3];
Question2 = [Answer1], [Answer2] , [Answer3];
With below code I get No Visible @interface for NSDictionary declares the selector 'setObject:forKey:'
//answers
_surveyAnswers1 = [[NSMutableDictionary alloc] init];
NSArray *myArrayAnswers1 = [NSArray arrayWithObjects:@"One",@"Two", nil];
NSArray *myArrayAnswers2 = [NSArray arrayWithObjects:@"Three",@"Four", nil];
[_surveyAnswers1 setObject:myArrayAnswers1 forKey:@"FirstKey"];
[_surveyAnswers1 setObject:myArrayAnswers2 forKey:@"SecondKey"];
What is correct way to add an array to a key in NSDictionary?