Understanding Instruments memory allocation log on iOS

前端 未结 4 1008
孤独总比滥情好
孤独总比滥情好 2021-02-04 14:21

I have built an iOS app that is almost done, however, I have recently experienced that it crashes after while due to \"Memory pressure\". So I started profiling the memory alloc

4条回答
  •  温柔的废话
    2021-02-04 15:12

    Your animation mostly contains changing alpha value or colour. To reduce the animation code in custom segue, I suggest you move your animation code for destination view controller (i.e. the method destinationControllerIn) to viewDidLoad: of destination view controller.

提交回复
热议问题