摘要: UITextField,UITextView字数限制主要是使用他们的两个代理方法//标题限制在 30个字以内 - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{ if (range.location>=30) { UIAlertView *alertNums = [[UIAlertView alloc]initWithTitle:@"输入提示" m... 阅读全文
posted @ 2013-12-16 13:53 cocoajin 阅读(485) 评论(0) 推荐(0)