How to check contains of object in one array in objective C iOS

 Solution:

NSArray *arr = @[@1,@2,@3];

int value = 1;

if([arr contains:value]) {
NSlog("yes it's Available");

} else {

NSlog("not Available");

}

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift