LTScrollView icon indicating copy to clipboard operation
LTScrollView copied to clipboard

子控制器、LTPageView、LTPageTitleView等都不会释放、内存泄露。

Open liuzizhong opened this issue 7 years ago • 6 comments

只有LTAdvancedManager会释放,其他的均不释放,可以在Demo中测试一下。

liuzizhong avatar Dec 20 '18 01:12 liuzizhong

麻烦作者定位一下哪部分引起的。

liuzizhong avatar Dec 20 '18 01:12 liuzizhong

extension LTAdvancedManager { private func deallocConfig() { for viewController in viewControllers { viewController.glt_scrollView?.delegate = nil } titleView.removeFromSuperview() pageView.removeFromSuperview() } } 这样才行。

liuzizhong avatar Dec 20 '18 03:12 liuzizhong

@liuzizhong 感谢指出

glthello avatar Jan 15 '19 04:01 glthello

extension LTAdvancedManager { private func deallocConfig() { for viewController in viewControllers { viewController.glt_scrollView?.delegate = nil } titleView.removeFromSuperview() pageView.removeFromSuperview() } } 这样才行。

back的时候调用吗

coderjun666 avatar Jul 01 '19 01:07 coderjun666

@liuzizhong pageview的子组件也不释放 解决了吗

coderjun666 avatar Jul 01 '19 06:07 coderjun666

@liuzizhong @codejun9527 已修复不释放问题,建议升级

glthello avatar Aug 22 '20 11:08 glthello