NSMutableArray indexOfObject returning an extremely large number

前端 未结 2 1501
一生所求
一生所求 2021-01-21 12:19

I have an NSMutableArray returning an extremely large index?

po [masterArray count] < returns \"2\"

NSUInteger theIndex = [masterArray indexOfObject:valida         


        
2条回答
  •  广开言路
    2021-01-21 12:49

    That's the value for NSNotFound. This means the object you are looking for isn't in the array.

提交回复
热议问题