本文介绍了如何使用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];
这篇关于如何使用for循环动态创建uitextfield的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!