字典:dic = { }
for (NSString *key in [dic allKeys]) {
if ([[dic objectForKey:key] isKindOfClass:[NSDictionaryclass]]) {
if ([[[dic objectForKey:key] allKeys] count] == 0) {
// 空字典的处理
}
}
}
时间: 2024-10-14 09:47:34
字典:dic = { }
for (NSString *key in [dic allKeys]) {
if ([[dic objectForKey:key] isKindOfClass:[NSDictionaryclass]]) {
if ([[[dic objectForKey:key] allKeys] count] == 0) {
// 空字典的处理
}
}
}