delegate的屬性不是weakNSTimer沒有invalidateblock中的強引用調用了performSelector,退出時沒有cancelPerformSelectorsWithTargetThis method sets up a timer to perform the aSele... ...
delegate
的屬性不是weakNSTimer
沒有invalidateblock
中的強引用調用了
performSelector
,退出時沒有cancelPerformSelectorsWithTarget
This 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很長時間不會被釋放。