NSArry * arr = nil;
[arr count] 为0
对于arr 进行 [arr objectatindex:3] 取值 为nil ,
NSArry *arr1 = [NSArry arrayWithObjects: @"1","2",nil];
[arr count] 为2
对于arr 进行 [arr objectatindex:3] 取值会出现数组越界crash.
NSArry * arr = nil;
[arr count] 为0
对于arr 进行 [arr objectatindex:3] 取值 为nil ,
NSArry *arr1 = [NSArry arrayWithObjects: @"1","2",nil];
[arr count] 为2
对于arr 进行 [arr objectatindex:3] 取值会出现数组越界crash.