一次比较六个阵列 [英] Compare six arrays at once
问题描述
我有六个阵列,我想所有这些阵列在同一时间进行比较。是否有人可以提出一个解决方案为这个?
isEqualToArray:比较接收
阵列到另一个阵列。
- (BOOL)isEqualToArray:(NSArray的*)otherArray参数otherArray的数组。返回值是如果
otherArray的内容等于
接收阵列的内容,
否则没有。
讨论两个阵列,具有同等
内容,如果他们各自持有相同
在一个对象和对象数
每个阵列中给定索引满足
isEqual:方法:测试
供货情况在IOS 2.0和
后来。宣布NSArray.h
块引用>从<一个href=\"http://developer.apple.com/library/ios/#documentation/cocoa/reference/foundation/Classes/NSArray_Class/NSArray.html\">NSArray类参考
I have six arrays, and I want to compare all those arrays at the same time. Can someone please suggest a solution for this?
解决方案isEqualToArray: Compares the receiving array to another array.
- (BOOL)isEqualToArray:(NSArray *)otherArray Parameters otherArray An array. Return Value YES if the contents of otherArray are equal to the contents of the receiving array, otherwise NO.
Discussion Two arrays have equal contents if they each hold the same number of objects and objects at a given index in each array satisfy the isEqual: test.
Availability Available in iOS 2.0 and later. Declared In NSArray.h
这篇关于一次比较六个阵列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!