导致VC不能释放的几个原因
delegate的属性不是weakNSTimer没有invalidateblock中的强引用调用了
performSelector,退出时没有cancelPerformSelectorsWithTargetThis method sets up a timer to perform the aSelector message on the current thread’s run loop. The timer is configured to run in the default mode (NSDefaultRunLoopMode).
performSelector其实就是定时器,会强引用object。如果delay很长的话,就会被导致object很长时间不会被释放。
下起雨,也要勇敢前行
浙公网安备 33010602011771号