Compare an int to an array of ints Obj-C

Posted by Sam Jarman on Stack Overflow See other posts from Stack Overflow or by Sam Jarman
Published on 2010-04-12T07:50:49Z Indexed on 2010/04/12 7:53 UTC
Read the original article Hit count: 358

Filed under:
|
|

Hi..

How do i go about seeing if my integer is in an array of integers...

eg i want to know if 7 is in an array of [ 1 3 4 5 6 7 8]

any ideas?

Thanks

© Stack Overflow or respective owner

Related posts about nsarray

Related posts about nsinteger