Why does creating and removing SKShapeNode and SKNode repeatedly cause a memory leak?

前端 未结 4 534
迷失自我
迷失自我 2021-02-04 18:48

Using the sprite kit template that comes with Xcode, I modify the scene to be as follows :

#import \"MyScene.h\"

@interface MyScene ()
@property (nonatomic,stro         


        
4条回答
  •  余生分开走
    2021-02-04 19:18

    I've the same problem.

    Scene added one compound node (SKShape with SKSprite) then I removed this node from scene and added again(I got leak two nodes).

    My leak is fixed with recreation compound node after remove from scene

提交回复
热议问题