It's not an actual problem but it is frustrating me.. I was looking for a better way to right an IF statement with multiple values that can be accepted.
For example:
if ([[myJson objectForKey:@"pages"] intValue] == 0 || [[myJson objectForKey:@"pages"] intValue] == 3)
Isn't there any way to write something like:
if ([[myJson objectForKey:@"pages"] intValue] == 0 | 3)
{
}
Thanks !!
Aucun commentaire:
Enregistrer un commentaire