【发布时间】:2012-03-22 10:00:40
【问题描述】:
我想使用 plist 中的标签从动态创建的文本字段中添加和获取值...。 我该怎么做?
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];
如何使用这样的标签添加对象...
[form1Array1 addObject:Txt_New_ONU.text];//3
我想在标签上添加文本文件的每个索引的值......
如何添加,保存n通过plist检索textfild标签上的值......就像这一行
[form1Array1 addObject:Txt_New_ONU.text];//3
它将值保存在 plist 的第 3 位......如何保存 n 检索标签上动态创建的文本字段的值,我定位 n 如何检索它?
【问题讨论】:
标签: iphone objective-c ios