I have an image overlapping on the UITextView. I would like to hide the image when user started touching the text view and start editing. What code should i use?
I tried the following code but does not work.
-(IBAction)textViewDidBeginEditing:(UITextView *)textView{
img1.hidden=YES;
}
It should be:
Also, don’t forget to implement the following so you can unhide it when the textView stops editing.
You also have to make sure your delegate is setup properly like: