How do I set a different maximum character limit on text fields in one view in iphone?
1 answer
Embed UITextViewDelegate
with textView:shouldChangeTextInRange:replacementText
and return NO
when the length of the content of the text view is equal to or greater than the maximum length. The only exception to this is that it is replacementText
empty, in which case you should always returnYES
+1
a source to share