我正在 xcode 中测试 iphone 应用程序,但它给出了 unkonwo 错误
应用程序在应用程序启动结束时应该有一个根视图控制器 wait_fences: failed to receive reply: 10004003
我不知道为什么加载视图时它会破坏应用程序并给出此错误
My code where it breaks
- (void)viewDidLoad {
[super viewDidLoad];
if(!surveyList){
surveyList=[[NSMutableArray alloc]init];
}
[self getSurveyList];
}
- (void)getSurveyList {
NSString*user_id=user_id;
NSLog(user_id);
NSString *url=[NSString stringWithFormat:@"http://celeritas-solutions.com/emrapp/surveyDescription.php?user_id=%@",user_id];
NSArray *tempArray =[[DataManager staticVersion] startParsing:url];
for (int i = 0; i<[tempArray count]; i++) {
id *item = [tempArray objectAtIndex:i];
NSDictionary *dict = (NSDictionary *) item;
ObjectData *theObject =[[ObjectData alloc] init];
[theObject setSurvey_title:[dict objectForKey:@"survey_Title"]];
[theObject setSurvey_Description:[dict objectForKey:@"survey_Description"]];
[theObject setDate_Created:[dict objectForKey:@"date_Created"]];
[surveyList addObject:theObject];
[theObject release];
theObject=nil;
int count =[surveyList count];
NSLog(@"Total is %d",count);
}
}
从视图中调用此方法时出现此错误确实加载方法