//懒加载方式初始化数组(要用到数组时才初始化)
-(NSMutableArray *)nearbyArray{ if (_nearbyArray == nil) { _nearbyArray = [NSMutableArray array]; } return _nearbyArray;}//调用
LimitModel *model = self.nearbyArray[i];
本文共 244 字,大约阅读时间需要 1 分钟。
//懒加载方式初始化数组(要用到数组时才初始化)
-(NSMutableArray *)nearbyArray{ if (_nearbyArray == nil) { _nearbyArray = [NSMutableArray array]; } return _nearbyArray;}//调用
LimitModel *model = self.nearbyArray[i];
转载于:https://www.cnblogs.com/liaods/p/4788767.html