可能重复:
Unable to display data in view—working in simulator but not in device
我的代码在模拟器中工作正常,在设备中运行时崩溃了。这是我的代码:
QuizMasterAppDelegate *appDalegate=[[UIApplication sharedApplication]delegate];
appDalegate->table=2;
[appDalegate->idStoreArray removeAllObjects];
QuestionView *qmvc=[[QuestionView alloc]init];
[self.navigationController pushViewController:qmvc animated:YES];
[qmvc release];
我需要点击按钮进入问题视图。我怎样才能做到这一点?