Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序中,我在 wkWebView 上加载了交互式会议 URL,但我注意到分配的内存一直在逐渐增加。应用程序启动时,内存约为 22 MB,但内存会以秒为单位增加。
我怎样才能阻止我的记忆随着时间的推移而逐渐增加?
https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/LaunchingInstruments.html
尝试使用 Leaks 或 Allocations 过滤器在 Instruments 中运行您的应用程序,看看是什么导致了您的问题。希望这将引导您找到内存泄漏的根源。