I'm getting from the database dictionary in which there is one or more objects NSNull
. In the future, I can not in any way to work with him as the app crash. I tried many ways to remove from the dictionary NSNull
objects, method removeObjectForKey
but any attempt to do this I get an error that is an array of reason:
- [__ NSArrayM removeObjectForKey:]: unrecognized selector sent to an instance
And I can not remove these objects by method the array removeObjectAtIndex
as this dictionary. I only thought of how to do this is to remove these objects by type. Is it possible to do so, remove the object from the dictionary that match NSNull
type? Or maybe there is another solution to this problem?
Thank you for any help!