- (void)willMoveToSuperview:(UIView *)newSuperview
{
if (newSuperview == nil) {
//说明当前UIView生命周期结束,需要释放资源可以在这边写
}
[super willMoveToSuperview:newSuperview];
}
- (void)willMoveToSuperview:(UIView *)newSuperview
{
if (newSuperview == nil) {
//说明当前UIView生命周期结束,需要释放资源可以在这边写
}
[super willMoveToSuperview:newSuperview];
}
本文标题:UIView释放时机点
本文链接:https://www.haomeiwen.com/subject/wvbjbktx.html
网友评论