iOS数组越界会出现奔溃,对此,有两种解决方案,一种是使用NSArray类别,一种是使用runtime机制。参考文献:http://www.jianshu.com/p/5492d2d3342b http://www.jianshu.com/p/e124031eb997