SKPhysicsBody bodyWithPolygonFromPath memory leaks

前端 未结 5 1919
醉酒成梦
醉酒成梦 2020-12-10 15:38

I have a strange memory leaks when creating Sprite Kit physics bodies with custom shapes. This is how my implementation looks:

CGFloat offsetX = self.frame.s         


        
5条回答
  •  半阙折子戏
    2020-12-10 15:59

    I've also experienced similar memory leak, but it was fixed after I removed one line from my viewDidLoad function
    skView.showsPhysics = YES;

提交回复
热议问题