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

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift