Check that the contents of one NSArray are all in another array

前端 未结 9 1811
说谎
说谎 2020-12-10 08:28

I have one NSArray with names in string objects like this:@[@\"john\", @\"smith\", @\"alex\", @\"louis\"], and I have another array that contains

9条回答
  •  南笙
    南笙 (楼主)
    2020-12-10 09:01

    Run a loop and use isEqualToStiring to verify whether array1 objects exists in mainArray.

提交回复
热议问题