當我跑我下面的代碼它顯示我像下面幫我的NSDictionary問題
警告一個錯誤:「的NSMutableDictionary」可不迴應「-setObject:forKey:forKey:」
什麼問題在我的代碼中。
myNumberOfPlayers = players;
myDifficultyLevel = difficulty;
myDuration = duration;
myExcerciseId = excerciseId;
NSMutableDictionary *myDictionary = [[ NSMutableDictionary alloc] init];
[ myDictionary setObject:players forKey:players forKey:@"no_of_players"];
[ myDictionary setObject:difficulty forKey:@"difficulty_level"];
[ myDictionary setObject:duration forKey:@"duration_excercise"];
[ myDictionary setObject:excerciseId forKey:@"Excercise_id"];