How to get UITextField Tap Event?

后端 未结 5 1133
既然无缘
既然无缘 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条回答
  •  旧时难觅i
    2020-12-18 19:19

    Connect TextField with delegate and Now calling this function!!

    -(BOOL)textFieldShouldBeginEditing:(UITextField *)textField {       
       textView.text=@"   ";
       return YES;
    }
    

提交回复
热议问题