NSDictionary 또는 NSMutableDictionary에 키가 포함되어 있는지 확인하는 방법 딕트에 열쇠가 있는지 확인해봐야겠어objectForKey키가 존재하지 않으면 0이 반환됩니다. if ([[dictionary allKeys] containsObject:key]) { // contains key /* Don't use this solution. Look for more details in comments. */ } 또는 if ([dictionary objectForKey:key]) { // contains object } Objective-C 및 Clang의 최신 버전은 다음과 같은 최신 구문을 사용합니다. if (myDictionary[myKey]) { } nil Objective-C ..