我有一个NSString =@"KEY3";NSMutableDictionary *AllValues ;如下所示。我只需要检查字符串是否是AllValues词典的元素之一

KEY1 {
    MLCAvailable = "test";
    MLCColorCode = "test2";
     NotesCount = "test3";
     },
KEY2 {
    MLCAvailable = "test";
    MLCColorCode = "test2";
     NotesCount = "test3";
     },
KEY3 {
    MLCAvailable = "test";
    MLCColorCode = "test2";
     NotesCount = "test3";
     },
KEY4 {
    MLCAvailable = "test";
    MLCColorCode = "test2";
     NotesCount = "test3";
     },

How should i find whether they KEY 3 is present in the given MutableDictionary ?

最佳答案

您可以在for循环的帮助下找到它

有帮助吗?

10-08 12:27