我想检查 NSMutableArray 是否包含 NSMutableDictionary,我知道我们可以使用
检查 NSDictionary [array indexOfObjectIdenticalTo:dict];
但无法弄清楚如何检查 NSMutableDictionary。 任何提示都会很棒。
谢谢。
最佳答案
这应该有效:[array containsObject: dict];
编辑:
要获取索引,您可以使用:
NSUInteger index = [array indexOfObject: dict];
关于ios - 如何检查 NSMutableArray 是否包含 NSMutableDictionary,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29510044/