Iphone 如何使用plist在标记上添加动态textfield值

Iphone 如何使用plist在标记上添加动态textfield值,iphone,Iphone,要从NSMutableArray中动态创建的带有标记的textfield中获取值 Txt_New_Estimated = [[UITextField alloc]initWithFrame:CGRectMake(360, textPosY , 130, 65)]; Txt_New_Estimated.delegate = self; Txt_New_Estimated.text=@""; Txt_New_Estimated.tag = i; Txt_New_Estimated.clearBut

要从NSMutableArray中动态创建的带有标记的textfield中获取值

Txt_New_Estimated = [[UITextField alloc]initWithFrame:CGRectMake(360, textPosY , 130, 65)];
Txt_New_Estimated.delegate = self;
Txt_New_Estimated.text=@"";
Txt_New_Estimated.tag = i; 
Txt_New_Estimated.clearButtonMode = UITextFieldViewModeWhileEditing;
[Txt_New_Estimated addTarget:self action:@selector(C6Loop)  forControlEvents:UIControlEventEditingChanged];//UIControlEventEditingDidEnd
Txt_New_Estimated.placeholder = @"Estimated";
Txt_New_Estimated.font = [UIFont fontWithName:@"Arial" size:23];
Txt_New_Estimated.backgroundColor = [UIColor whiteColor];
Txt_New_Estimated.textAlignment = UITextAlignmentCenter;
[scrollview addSubview:Txt_New_Estimated];
[textFieldArray addObject:Txt_New_Estimated];
如何使用这行代码在每个索引上添加值

[textfieldaray4 addObject:Txt_New_ONU.text];//值将只添加零索引

意味着此行只能添加一个值

但我想在textFieldArray4的零索引处添加无限值

因为我在“Txt\u New\u ONU”文本字段上使用了标记

如何做到这一点?请给出一些想法


谢谢…

您应该在UITextFieldDelegate中检查Txt\u New\u Estimated.text值

请看这里:

我建议的方法是:

- (void)textFieldDidBeginEditing:(UITextField *)textField
- (void)textFieldDidEndEditing:(UITextField *)textField

您希望何时获取该值?你有按钮吗?