ios - Compare two arrays and set an if else -
i need compare 2 arrays (a & b), elements of belong b need set if statement. explain me better:
if (elementofarraya belong alsotoarrayb) { //do }else{ //do else }
someone me? thanks
nsarray has instance method called containsobject:
this.
for further clarification, check this out.
Comments
Post a Comment