Domanda

I know that I can check if the UITextView is editing using textViewDidBeginEditing: but I want to check if it is editing using if statement is there is anyway to do that?

È stato utile?

Soluzione

Use the method isFirstResponder, e.g.:

if ([myTextView isFirstResponder]){
    // do something...
}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top