开发者

*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSMutableArray objectAtIndex:]: index 1 beyond bounds [0 .. 0]'

what is meaning

* Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSMutableArray objectAtIndex:]: inde开发者_如何学编程x 1 beyond bounds [0 .. 0]'

so that i can solve my problem thanks


It means you attempted to access the second item (at index 1) in an array containing only one item (index 0).


Zero based addressing.

If you only have one item in an NSArray, the first item in an array is at index 0, not index 1.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜