iOS- Terminating app due to uncaught exception 'NSRangeException'
错误描述:
Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 21 beyond bounds [0 .. 20]'
分析“index 21 beyond bounds[0..20]”
也就是是说索引21超过了[0 20]这个界限,换言之,就是数组越界,此时可以检查下下标为21的索引,将其替换。