I have an NSMutableArray instance which contains “N” number of objects and I want to check whether NSMutableArray contains a (null) or any other value.
In NSString there is a method called isEqualToString: Is there a similar method available for NSMutableArray?
Or otherwise, how can I do this?
NSMutableArraycan only contain non-nilobjects. Objects that print as(null)are typicallynil.The superclass method
containsObject:will tell you whether a particular non-nilobject is in the array. Note that this will only work if the objects are identical according toisEqual:.