【发布时间】:2014-09-12 00:32:36
【问题描述】:
NSMutableArray *quesArrayForPar0 = [[NSMutableArray alloc] initWithObjects:
[[NSMutableArray alloc] initWithObjects:@"We have a clearly stated vision for the next 5 years.", "-1", nil],
[[NSMutableArray alloc] initWithObjects:@"Our organization has clearly established strategy to achieve the vision.", "-1", nil],
[[NSMutableArray alloc] initWithObjects:@"This strategy is implemented uniformly and effectively throughout our organization.", "-1", nil],
[[NSMutableArray alloc] initWithObjects:@"We are progressing as per our plan to realize this vision within the envisage time horizon.", "-1", nil]
, nil];
我真的不明白为什么上面的代码会抛出异常..!
【问题讨论】:
-
, "-1",真的在你的代码中吗? -
哦..忘了把@放在“-1”之前..一个非常愚蠢的错误..
-
也请仔细阅读this Raywenderlich 的文章。
-
@Shradha 如果我的回答对您有帮助,请接受。
标签: ios memory-management nsmutablearray automatic-ref-counting