Trying to find which text field is active ios

后端 未结 7 2370
Happy的楠姐
Happy的楠姐 2020-12-28 14:26

I am trying to find which textfield is active for when the I move the view when the keyboard rises. I am trying to set a property in my viewcontroller from the subview of a

7条回答
  •  臣服心动
    2020-12-28 15:23

    Why dont you give all UITextfields individual Tags textfield.tag = 1

    then you respond to the delegate DidBeginEditing. and check which textfield.tag is active?

提交回复
热议问题