|
@@ -128,6 +128,11 @@
|
|
}
|
|
}
|
|
|
|
|
|
- (void)updateTextViewLineHeight:(UITextView *)textView {
|
|
- (void)updateTextViewLineHeight:(UITextView *)textView {
|
|
|
|
+ UITextRange *markedTextRange = textView.markedTextRange;
|
|
|
|
+ if (markedTextRange) {
|
|
|
|
+ // 当前处于拼音输入状态,暂不更新 attributedText
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
|
|
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
|
|
paragraphStyle.lineSpacing = 4.0f;
|
|
paragraphStyle.lineSpacing = 4.0f;
|
|
UIFont *font = [UIFont systemFontOfSize:15 weight:UIFontWeightRegular];
|
|
UIFont *font = [UIFont systemFontOfSize:15 weight:UIFontWeightRegular];
|