mineschan / MZTimerLabel

A handy class for iOS to use UILabel as a countdown timer or stopwatch just like in Apple Clock App.
MIT License
1.57k stars 247 forks source link

retain circle 导致timerLabel不能释放 #75

Open Shulin-Zhang opened 8 years ago

Shulin-Zhang commented 8 years ago

1

如果_timeLabel = self,由于self.timerLabel是strong,会形成retainCircle

2 timer 和self 也会形成retain circle,需要在不使用timer时调用一下cleanTimerLabel,比如在一个ViewController的dealloc中调用cle anTimerLabel