Why does NSDictionary report an unusual class name?

后端 未结 5 1054
孤独总比滥情好
孤独总比滥情好 2021-02-10 09:59
NSDictionary *dict = [NSDictionary dictionary];
NSLog(@\"%@\", NSStringFromClass([dict class])); 

This code prints \"__NSDictionary0\".

For my

5条回答
  •  不思量自难忘°
    2021-02-10 10:34

    So, basically, you need to know if you are having an NSMutableDictionary or a bare NSDictionary beforehand. Or don't need to know. Or create an NSMutableDictionary from your object (NSDictionary or NSMutableDictionary)?

    What was the question originally for?

提交回复
热议问题