-1
這裏是我的代碼的NSMutableDictionary選擇的setObject forkey錯誤
NSMutableDictionary* stations = [[NSMutableDictionary alloc] init];
RadioStation* newStation;
newStation = [[RadioStation alloc]
initWithName:@"Star 94 fm" atfrequency:91.4];
[stations setObject:newStation forkey:@"WSTR"];
,但我不斷收到一個錯誤:"no visible @interface" for NSMutableDictionary declares the selector setObject forkey
任何幫助將不勝感激。
這個問題似乎是題外話題,因爲它是關於一個錯字,並不會使未來的用戶受益。 –