Crash when trying to use objectAtIndex
y0unghe opened this issue · comments
I created a MutableOrderedDictionary
object, and I am using setObject:forKey
to set it's key and value. After that when I am trying to use objectAtIndex
method, it crashed and it's message is -[__NSDictionaryM objectAtIndex:]:
unrecognized selector sent to instance. I am pretty sure object contains keys and objects. The same thing happened to when I try to use keyAtIndex
.
Sorry. I am not creating the MutableOrderedDictionary correctly. [MutableOrderedDictionary new]
worked.