能不能判断字典中有几个key值

2025-05-05 07:41:43
推荐回答(1个)
回答1:

NSDictionary* dic = [NSDictionary dictionary];
NSArray* keys = [dic allKeys];