Pretty basic programming question, I know that PHP has a function for it, but does it have an iPhone OS?
I want to check if the current indexPath is a value in an array.
PHP example:
<?php $indexPath = 3; $array = array("0", "1", "2", "3", "4"); if (in_array($indexPath, $array)) {
Does anyone know how to do the same in iOS?
source share