NSMutableDictionary 的键值只能是字符串是真的吗?
我尝试使用对象,但收到警告。
最佳答案
来自docs :
In general, a key can be any object (provided that it conforms to the NSCopying protocol—see below), but note that when using key-value coding the key must be a string (see Key-Value Coding Fundamentals).
你收到了什么警告?
关于iphone - NSMutableDictionary 键值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1983822/