index 0 beyond bounds for empty array error

前端 未结 4 572
北荒
北荒 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条回答
  •  Happy的楠姐
    2020-12-19 04:44

    You have an empty array. You tried to call [array objectAtIndex:0]. 0 is beyond the bounds of an empty array (not surprising – anything is beyond the bounds for an empty array).

提交回复
热议问题