UITextView 메서드에서 변경 내용을 추적해야하지만 (줄 수를 제한하기 위해 actianly) UITextView에서 편집을 시작할 때 UITextViewDelegate 메서드가 호출되지 않습니다. 심지어 - (void)textViewDidChange:(UITextView *)textView;
UITextView 대리자 shouldChangeTextInRange (또는 이상의 값)은 호출되지 않습니다.
나는 임 뭘 잘 모릅니다 잘못된 나는 그런 파일 헤더에 UITextViewDelegate 방법을 추가
:@interface PirmasViewController : UIViewController <UITextViewDelegate, MFMa......
을 그리고 내 구현 파일의 변경 사항을 추적하기위한 모든 방법을 넣어 :
- (void)textViewDidChange:(UITextView *)textView{NSLog(@"something changed");}
- (BOOL)textView:(UITextView *)aTextView shouldChangeTextInRange:(NSRange)aRange replacementText:(NSString*)aText{
NSLog(@"something changed");
return YES;
}`
하지만 rezults
.