IOS - if a UITextView edits in an if statement

I know that I can check if it is editing UITextViewwith textViewDidBeginEditing:, but I want to check if it is edited with the if statement to do this?

+3
source share
1 answer

Use a method isFirstResponder, for example:

if ([myTextView isFirstResponder]){
    // do something...
}
+7
source

All Articles