ループでテキストフィールドを計算するにはどうすればよいですか? ループ内にテキスト フィールドがあり、別のテキスト フィールドの入力を計算したいと考えています。
x = 36; y = 0; w = 36 h = 25 ;
moretext = 0 ;
for (moretext=0; moretext<5; moretext ++) {
textFiled1 = [[UITextField alloc]initWithFrame:CGRectMake(x, y, w, h)];
textFiled1.textAlignment = NSTextAlignmentCenter;
textFiled1.backgroundColor = [UIColor clearColor];
textFiled1.font = [UIFont fontWithName:@"Helvetica " size:(8)];
x+=36 ;
[self.view addSubview:textFiled1];
}
textfield1 ループ入力の TOTAL を textfield2 に表示したい
textFiled2 = [[UITextField alloc]initWithFrame:CGRectMake(180, 0, 36, 25)];
textFiled2.textAlignment = NSTextAlignmentCenter;
textFiled2.backgroundColor = [UIColor clearColor];
textFiled2.font = [UIFont fontWithName:@"Helvetica " size:(8)];
[self.view addSubview:textFiled2];