导员
岛屿
导语
刀鱼
叨叨
无序列表
- 1
- 2
- 3
有序列表
- 1
- 2
- 3
这里是引用
从这里开始,就是引用的段落
插入链接
插入图片
斜体字和粗体字
其实这里还是一个网址链接 是怎样的链接?
百度
https://baidu.com
百度
分割线
代码如下
- (void)textViewDidChange:(UITextView *)textView{
NSLog(@"%@",textView.text);
if (textView.text.length>0) {
[self.noticeL setHidden:YES];
if (textView.text.length > 20) {
textView.text = [textView.text substringToIndex:20];
}
}else{
[self.noticeL setHidden:NO];
}
}
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{
NSString * toBeString = [textField.text stringByReplacingCharactersInRange:range withString:string];
if (toBeString.length > 11) {
textField.text = [toBeString substringToIndex:11];
return NO;
}
return YES;
}