如何使用for循环动态创建uitextfield

问题描述:

我尝试动态创建uitextfield,但我无法创建文本域名。任何人都知道请帮帮我。

I try to create the uitextfield dynamically, but i can't create the textfield name.Anybody knows please help me.

为每个UITextField分配标签..

Assign tag for each UITextField..

然后使用

UITextField *tf=(UITextField *)[yourView viewWithTag:tag];