.h
属性:
@property (copy,nonatomic) NSMutableArray *thingArrayIssue;
@property (copy,nonatomic) NSMutableArray *siteArrayIssue;
@property (copy,nonatomic) NSMutableArray *timeArrayIssue;
@property (copy,nonatomic)NSMutableArray *moneyArrayIssue;
@property (copy,nonatomic) NSMutableArray *phoneNumberArrayIssue;
.m
[self.timeArrayIssue addObject:@”12″];
属性:
@property (copy,nonatomic) NSMutableArray *thingArrayIssue;
@property (copy,nonatomic) NSMutableArray *siteArrayIssue;
@property (copy,nonatomic) NSMutableArray *timeArrayIssue;
@property (copy,nonatomic)NSMutableArray *moneyArrayIssue;
@property (copy,nonatomic) NSMutableArray *phoneNumberArrayIssue;
.m
[self.timeArrayIssue addObject:@”12″];
[self.siteArrayIssue addObject:@” “];
[self.moneyArrayIssue addObject:@” ];
[self.thingArrayIssue addObject:@” “];
[self.phoneNumberArrayIssue addObject:@” “];
然后就崩溃了!
解决方案
20
可变数组你还没初始化呢,不初始化怎么会有容量呢,没有容量怎么会存进东西去呢
20
最好是用一个其它的数组转化,然后在添加完成之后转化回来