How to get UITextField Tap Event?

后端 未结 5 1131
既然无缘
既然无缘 2020-12-18 18:42

I am trying to show UIAlertView on Tap or Click of UITextField for both IPad and IPhone. I make an IBAction and Attach it with Tap Down event of UITextField.

But it

5条回答
  •  孤城傲影
    2020-12-18 18:59

    Try adding a target for when a particular text field begins editing (UIControlEventEditingDidBegin):

     [textField1 addTarget:delegate action:@selector(textField1Active:) forControlEvents:UIControlEventEditingDidBegin];
    

提交回复
热议问题