在点击“self.myData = ...”行时出现异常
GDB程序接收信号:EXC_BAD_ACCESS
这是我的代码:
- (void)viewDidLoad {
[super viewDidLoad];
self.myData = [NSArray arrayWithObjects:
[NSArray arrayWithObjects:
@"Boroughs",
[NSArray arrayWithObjects:
@"Kings",
@"Bronx",
@"Manhattan",
@"Queens",
@"Staten Island",
nil],
nil],
[NSArray arrayWithObjects:
@"Surrounding Counties",
[NSArray arrayWithObjects:
@"Westchester",
@"Nassau",
@"Suffolk",
"@Fairfield",
nil],
nil],
nil];
}