I would like NSLog something when my UITextView is executed.
NSLog
I tried
- (BOOL)textViewShouldEndEditing:(UITextView *)textView
and
- (void)textViewDidEndEditing:(UITextView *)textView
did not work.
fix:
myTextView.delegate = self;
Do you ask a delegate for your text?
set the delegate in the .h file as follows:
#import <UIKit/UIKit.h> @interface TextViewController : UIViewController <UITextViewDelegate> { UITextView *textView; } @property (nonatomic, retain) UITextView *textView; @end
If you are using UITextField, be sure to use UITextFieldDelegate, not UITextViewDelegate. And this method instead fixed my problems.
- (void)textFieldDidEndEditing:(UITextField *)textField
Source: https://habr.com/ru/post/1440173/More articles:How to kill a socket in unit tests for reconnecting - pythonDoes recv lock fail when closing a socket from another thread? - creboot Mac OS securityd - securityHow to get string value of custom constant of C # resource class? - c #Divide the name into fields? - c #For the loop, the first command is not executed after the second time - javaUIButton does not move if called after addSubView - iosWhy does System.out.print cause autorun? - javajquery.ui.datepicker Monthly selection didn't work in IE9 - jqueryLock ConcurrentDictionary - multithreadingAll Articles