반응형
//#define MAXLENGTH 원하는 글자수
//- (BOOL)textView:(UITextField *)textView shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
// alert = (Alert *)self.appDelegate.alert;
// if (textView.tag == 1) {
// int length = [textView.text length] ;
// if (length >= MAXLENGTH) {
// textView.text = [textView.text substringToIndex:MAXLENGTH];
// [alert alertMaxInfoMessage];
// return NO;
//
// }
// return YES;
// }
//
//}
반응형
'개발 > iOS' 카테고리의 다른 글
Swift String 비교 (0) | 2023.02.10 |
---|---|
UILabel copyWithZone 오류 (1) | 2012.04.02 |
[IB없이 개발하기] 서치바 초성, 중성, 종성 분리해서 검색하기 (0) | 2011.06.23 |
Xcode 와 SVN (0) | 2011.06.21 |
[IB없이 개발하기] 아이폰 문자열 대체하기 stringByReplacingOccurrencesOfString (0) | 2011.06.01 |