When my UITextView is being edited, I want a button to appear. How can I do this?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Implemetn
UITextViewDelegatein your class and when editing is being started onUITextViewit’ll call it’s
textViewShouldBeginEditing:function where you can do whatever you want. You can show your button when editing start and hides when editing ends in this function.For further detail see this