Dynamically insert more UITextFields

前端 未结 5 1589
没有蜡笔的小新
没有蜡笔的小新 2020-12-18 17:34

I have a requirement as described in the attached screen shot. When blue add button is clicked, one more UItextfield have to be inserted between last text field

5条回答
  •  天命终不由人
    2020-12-18 17:47

    First get the frame of the UItextField. Now increase yPos of the previous textFeild and at UITetField new position. And to re arrange UITextField which are below that textField just increase yPos of each TextField .

    Hope this will help you.

    All the best!!!

提交回复
热议问题