我有一个应用程序,我测试在我的mac和模拟器,它的岩石。但是,当我尝试用iPhone或其他人测试它时,尝试运行它。它在某个地方得到一个错误,并发送如下:
2012-06-12 11:27:26.932科尼维亚-塔西201223463:707英勇:南希,Meurthe-et-Moselle,法国
2012年-06-12 11:27:26.933认知20223463:707
2012-06-12 11:27:27.097认知电话201223463:707付费:FR
2012-06-12 11:27:27.228认知to 201223463:707 *终止应用程序由于非正常异常'NSInvalidArgumentException',原因:'* -__NSArrayM插入对象:27索引: object不能为零‘
DetailTaxi *detailView = [[DetailTaxi alloc] initWithNibName:nil bundle:[NSBundle mainBundle]];
NSString *nomville = [[_jsonDict objectAtIndex:indexPath.row] objectForKey:@"label"];
NSString *idVille = [[_jsonDict objectAtIndex:indexPath.row] objectForKey:@"id"];
detailView.title = nomville;
detailView.idVille = idVille;
NSLog(@"Valor: %@", nomville);
NSLog(@"Valor: %@", idVille);
AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
NSManagedObjectContext *context = [appDelegate managedObjectContext];
NSManagedObject *villesR = [NSEntityDescription
insertNewObjectForEntityForName:@"Ville"
inManagedObjectContext:context];
[villesR setValue:idVille forKey:@"idV"];
[villesR setValue:nomville forKey:@"nom"];发布于 2012-06-13 08:32:15
最后..。这是NSMutableArray中的图像插入。我在硬盘上有图像,但在项目中没有。所以当我导出这个项目时,图像并不存在。
抱歉打扰你了。
https://stackoverflow.com/questions/10994098
复制相似问题