2021年1月20日星期三

CATiledLayer dealloc subView's layer unexpectedly

In my test code , I will use View TiledView (whose layer class is a CATiledLayer) as a contentView , and a normal View SubView as a subView (but it will do some async operations).

And I found that ,when the TiledView dealloc , it will make the SubView 's layer dealloc , But at the same time ,the SubView 's object is not deallocating . So I think the layer'deallocating before the view is not right , maybe some problem is behind there (because i use addSubView for a view with CATiledLayer?)

My test code is here https://github.com/ximmyxiao/TestTiledLayerDealloc

https://stackoverflow.com/questions/65820613/catiledlayer-dealloc-subviews-layer-unexpectedly January 21, 2021 at 11:05AM

没有评论:

发表评论