NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 5 beyond bounds for empty array'

前端 未结 5 936
抹茶落季
抹茶落季 2020-12-16 20:32

in my application when i run app for first time,it work ok.but when i run again 2 two times, it crashes.

This is the error..

NSRangeException\', reason: \'**

5条回答
  •  [愿得一人]
    2020-12-16 20:46

    You array is empty, but you're trying to access an object in it. That is the problem.

提交回复
热议问题