且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

比较两个具有相同值但顺序不同的数组

更新时间:2022-03-15 21:39:52

if ([[NSSet setWithArray:array1] isEqualToSet:[NSSet setWithArray:array2]]) {
    // the objects are the same
}