-(IBAction)Done :(id) sender {
NSMutableArray *addinfo = [[NSMutableArray alloc]init];
AddinfoCarteV *addinfoCarteV =[[AddinfoCarteV alloc]initWithNibName:@"AddinfoCarteV" bundle:nil];
[addinfo addObject:textfieldToAdd.text];
NSLog(@"%@",addinfo);
addinfoCarteV.informationMan = addinfo ;
textfieldToAdd.hidden= NO ;
}
答案 0 :(得分:1)
请尝试清楚地提问。我认为您需要分配和初始化addinfoCarteV.informationMan
数组。如果要将addinfo
数组复制到informationMan
数组,请尝试此代码
addinfoCarteV.informationMan = [[NSMutableArray alloc] init];
[addinfoCarteV.informationMan addObjectsFromArray:addinfo];