不调用Deinit方法,因为它有保留循环。检查所有的闭包,并确保使用弱self或无主self。
我在UICollectionViewCell,中有一个计时器
timer = Timer.scheduledTimer(timeInterval: 5, target: self, selector: #selector(shakeView), userInfo: nil, repeats: true)
现在我想在控制器断开时删除计时器,但不称为的小区去比特