I want to add and fetch the value from dynamically created textfield with tag from plist….
how could i do this?
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];
how to add object with tag like this …
[form1Array1 addObject:Txt_New_ONU.text];//3
i want to add the value every index of textfiled on tag ……
how to add , save n retrieve the value on textfild tag through plist…. like this line
[form1Array1 addObject:Txt_New_ONU.text];//3
it save the value on 3rd position on plist…. how to save n retrieve the value dynamically created textfield on tag , i position n how to retrieve it?
Reading the content of a plist to an array:
Iterate through the array to create text fields with tags and add it to a new array: