*** 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.
精彩评论