From a1d0d53101f754e1bef7054dac9219f3b0a00229 Mon Sep 17 00:00:00 2001 From: Jude5201 <2719502607@qq.com> Date: Fri, 9 May 2025 14:12:51 +0800 Subject: [PATCH] Update QMUIConsoleViewController.m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复iOS18.4 iPhone XS Max内存暴涨500MB问题 --- QMUIKit/QMUIComponents/QMUIConsole/QMUIConsoleViewController.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/QMUIKit/QMUIComponents/QMUIConsole/QMUIConsoleViewController.m b/QMUIKit/QMUIComponents/QMUIConsole/QMUIConsoleViewController.m index 696aff20..83f73c54 100644 --- a/QMUIKit/QMUIComponents/QMUIConsole/QMUIConsoleViewController.m +++ b/QMUIKit/QMUIComponents/QMUIConsole/QMUIConsoleViewController.m @@ -111,6 +111,8 @@ - (void)didInitializeWithStyle:(UITableViewCellStyle)style { self.textView.backgroundColor = [UIColor clearColor]; self.textView.scrollsToTop = NO; self.textView.editable = NO; + self.textView.layoutManager.usesFontLeading = NO; + self.textView.layoutManager.allowsNonContiguousLayout = NO; self.textView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; [self.contentView addSubview:self.textView]; }