Monday, 23 April 2012

Limit number of characters in uitextview

if(range.length > text.length){
    return YES;
}else if([[textView text] length] + text.length > 140){
    return NO;
}
return YES;

No comments:

Post a Comment