index 0 beyond bounds for empty array error

前端 未结 4 588
北荒
北荒 2020-12-19 04:18

I don\'t understand on how to debug this error message:

2011-02-01 20:45:56.151 NeMe[3206:207] *** Terminating app due to uncaught exception \'NSRangeExcepti         


        
4条回答
  •  忘掉有多难
    2020-12-19 04:35

    As Kevin Ballard said, this error is thrown when you ask for the element at index X that is beyond array bounds, in addition to looking for [array objectAtIndex: X], this error may be even caused from the modern syntax array[X]

提交回复
热议问题