Currently in View A I call a few methods to animating some UIImageView's while the view is open. These methods get called when the animations are finished so pretty much these animations go forever while the view is still open. What I do not want though, is any of these methods to get called when I switch views like I do below.
目前在View A中我调用了一些方法来在视图打开时动画一些UIImageView。当动画完成时会调用这些方法,因此当视图仍处于打开状态时,这些动画将永远消失。我不想要的是,当我像下面这样切换视图时,可以调用这些方法。
Why do my methods in View A still get called?
为什么View A中的方法仍然被调用?
Thanks!
谢谢!
1 个解决方案
#1
1
If you have a strong reference to your view it won't be deallocated. Removing it from the superview only drops the retain count by one.
如果您对视图有强烈的引用,则不会取消分配。从superview中删除它只会将保留计数减一。
#1
1
If you have a strong reference to your view it won't be deallocated. Removing it from the superview only drops the retain count by one.
如果您对视图有强烈的引用,则不会取消分配。从superview中删除它只会将保留计数减一。