導(dǎo)員
島嶼
導(dǎo)語(yǔ)
刀魚(yú)
叨叨
無(wú)序列表
- 1
- 2
- 3
有序列表
- 1
- 2
- 3
這里是引用
從這里開(kāi)始,就是引用的段落
插入鏈接
插入圖片

貓與狗
斜體字和粗體字
其實(shí)這里還是一個(gè)網(wǎng)址鏈接 是怎樣的鏈接?
百度
https://baidu.com
百度
分割線(xiàn)
代碼如下
- (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;
}